Created
May 8, 2016 15:07
-
-
Save ivankristianto/6145939f353f6f1b41d24a42a3b44345 to your computer and use it in GitHub Desktop.
Clean Up Docker
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
# Remove all stopped containers. | |
docker rm $(docker ps -a -q) | |
#Remove all untagged images | |
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment