-
-
Save arvind-india/240c497079c7d89f5d3733b37f5cbfff 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