Created
December 2, 2014 15:35
-
-
Save venkatperi/e7e5e9834afdb79077cb to your computer and use it in GitHub Desktop.
docker stuff
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
#remove stopped containers | |
docker ps -a|grep Exited|cut -d' ' -f1|xargs docker rm $1 | |
#remove untagged images | |
docker images|grep none|awk '{print $3}'|xargs docker rmi $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment