Maintenance & Upgrades
Two recurring maintenance tasks: keeping your own customizations tracked against upstream, and moving an older Laradock install onto the current tooling.
Track your Laradock changes
To keep your Laradock customizations under version control while staying able to pull upstream updates:
- Fork the Laradock repository.
- Use your fork as a submodule.
- Commit your changes to your fork.
- Pull from the main repository periodically.
Upgrade Laradock
Moving from Docker Toolbox (VirtualBox) to Docker Desktop, and Laradock v3 to v4:
- Stop the docker VM:
docker-machine stop {default}. - Install Docker Desktop for Mac or Windows.
- Upgrade Laradock to
v4.*.*:git pull origin master. - Use Laradock as usual:
docker compose up -d nginx mysql.
warning
If the last step fails, rebuild everything with docker compose build --no-cache. Warning: container data might be lost.