Created
July 13, 2017 13:50
-
-
Save fvztdk/536e1ff39b21d6a546b16bb92fc1b589 to your computer and use it in GitHub Desktop.
Docker cleanup
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
#!/bin/bash | |
#v1.1 | |
docker rm -v $(docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null | |
docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null | |
rm -rf /var/lib/docker/tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment