Created
June 15, 2014 15:59
-
-
Save katpadi/e0b77fedfb4048901d03 to your computer and use it in GitHub Desktop.
Docker Cheat Sheet
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
Like "ls" | |
docker images | |
Like "rm" in linux -- change "<none>" to something relevant | |
docker rmi $(docker images | grep "^<none>" | awk '{print $3}') | |
Delete all images | |
docker rmi $(docker images -q) | |
Delete all containers | |
docker rm $(docker ps -a -q) | |
===== Example Image ===== | |
pull image | |
docker pull tutum/wordpress | |
actually running | |
docker run -d tutum/wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to Mark Steve's help & knowledge. LOL