Created
August 17, 2016 17:38
-
-
Save anubhavsinha/00f66c1b1c2b467aca193b10c85148fb to your computer and use it in GitHub Desktop.
Some utility command to clean up docker dirt
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
# cleans all images | |
docker images | awk '{print $3}' | xargs docker rmi | |
# cleans all stopped containers | |
docker rm $(docker ps -q -f status=exited) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment