Skip to content

Instantly share code, notes, and snippets.

@jamesbrink
Created May 24, 2015 22:49
Show Gist options
  • Save jamesbrink/f0f6df9f40e0f3fc4999 to your computer and use it in GitHub Desktop.
Save jamesbrink/f0f6df9f40e0f3fc4999 to your computer and use it in GitHub Desktop.
Useful docker commands
# Misc useful docker commands for use on dev env
# Clean up all stopped containers
docker ps -a|cut -d " " -f 1|grep -v CONTAINER|xargs docker rm
# Clean up all images
docker images |awk '{print $3'}|grep -v IMAGE|xargs docker rmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment