Created
May 24, 2015 22:49
-
-
Save jamesbrink/f0f6df9f40e0f3fc4999 to your computer and use it in GitHub Desktop.
Useful docker commands
This file contains hidden or 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
# 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