Created
January 9, 2017 17:06
-
-
Save pecavalheiro/bb44f6d60e4d4d6153cd8bf36f7494bd to your computer and use it in GitHub Desktop.
Revisions
-
pecavalheiro created this gist
Jan 9, 2017 .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,4 @@ # remove exited container. docker ps -a|grep Exit|cut -d' ' -f 1|xargs docker rm # remove images as possible that has no name/tag docker images -a|grep '^<none>'|tr -s ' '|cut -d' ' -f 3|xargs docker rmi