Docker (software): Difference between revisions

No edit summary
Line 83: Line 83:
[https://github.com/docker/toolbox/issues/673 Reference]<br>
[https://github.com/docker/toolbox/issues/673 Reference]<br>
When mounting paths using git bash, you need to prepend a <code>/</code> to <code>$(pwd)</code><br>
When mounting paths using git bash, you need to prepend a <code>/</code> to <code>$(pwd)</code><br>
==docker-compose==
Docker compose allows you to specify multiple docker services into a single <code>docker-compose.yml</code> file and run them all together. 
You can also use it to setup docker commands instead of listing options in a shell script.
<pre>
# Create a folder for your service and cd into it
# Make the docker-compose file.
# Run (i.e. build, create, and start)
docker-compose up -d
# Stop
docker-compose down
# Upgrade
docker-compose pull # (Optional) Pull before recreating to reduce downtime.
docker-compose up --force-recreate --build -d
docker image prune -f
</pre>


==Resources==
==Resources==