Skip to content

Instantly share code, notes, and snippets.

@katpadi
Created June 15, 2014 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katpadi/e0b77fedfb4048901d03 to your computer and use it in GitHub Desktop.
Save katpadi/e0b77fedfb4048901d03 to your computer and use it in GitHub Desktop.
Docker Cheat Sheet
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
@katpadi
Copy link
Author

katpadi commented Jun 15, 2014

Thanks to Mark Steve's help & knowledge. LOL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment