Created
April 20, 2017 13:41
-
-
Save gurunars/520c020e4e3fee9bb91ce196d301771d to your computer and use it in GitHub Desktop.
cleanup-docker
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 | |
docker ps -aqf "status=exited" | xargs -r docker rm -f | |
docker images -qf "dangling=true" | xargs -r docker rmi -f | |
docker volume ls -qf "dangling=true" | xargs -r docker volume rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment