Last active
January 26, 2017 21:30
-
-
Save drb/973903cbd9d04b17570de1bdec8595a6 to your computer and use it in GitHub Desktop.
Docker cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# deletes all containers | |
docker rm $(docker ps -a -q) | |
# deletes all images | |
docker rmi $(docker images -q) | |
# rebuild everything and restart any changed containers | |
docker-compose up -d --build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment