Created
October 8, 2015 10:56
-
-
Save damnit/37ae83a79a8e9eb65235 to your computer and use it in GitHub Desktop.
Revisions
-
damnit created this gist
Oct 8, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ #!/bin/bash # delete all containers matching a $1 docker ps -a | grep $1 | awk '{print $1}' | xargs docker rm # delete all "<none>" image-pollution by docker-compose docker images | grep \<none\> | awk '{print $3}' | xargs sudo docker rmi