Last active
August 29, 2015 14:00
-
-
Save peter-mcconnell/11291924 to your computer and use it in GitHub Desktop.
useful docker cmds
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
| # delete dead images | |
| for i in `sudo docker images|grep \<none\>|awk '{print $3}'`;do sudo docker rmi $i;done | |
| # delete containers | |
| sudo docker rm -f `sudo docker ps --no-trunc -a -q` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment