Created
August 12, 2016 14:19
-
-
Save jbfink/baf5bf8b1fff4dd12555ca8bbff33166 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
docker ps -a | grep 'Exit' | awk '{print $1}' | xargs docker rm | |
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi | |
docker volume rm $(docker volume ls -qf dangling=true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment