Created
April 14, 2016 18:33
-
-
Save jbfink/9c1f691f609c1929c0d2fe11e35a6a2f 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