Created
January 9, 2017 17:06
-
-
Save pecavalheiro/bb44f6d60e4d4d6153cd8bf36f7494bd to your computer and use it in GitHub Desktop.
Clear docker diff (/var/lib/docker/aufs/diff)
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
| # 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment