Created
May 26, 2016 14:39
-
-
Save scottw/9ad2637cfab67c16f5018559d97e20fb to your computer and use it in GitHub Desktop.
Purges unreachable Docker image layers. Add to ~/.bash_profile, run as needed.
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
docker-image-purge() { | |
docker images -q -f dangling=true | xargs docker rmi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment