Created
July 26, 2014 18:27
-
-
Save anildigital/862675ec1b7bccabc311 to your computer and use it in GitHub Desktop.
Remove dangling docker images
This file contains 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
docker rmi $(docker images -q -f dangling=true) |
Some images can't be removed without -f option
docker images --quiet --filter=dangling=true | xargs --no-run-if-empty docker rmi -f
This works perfect, does the job
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice jobs