Last active
March 23, 2018 04:58
-
-
Save andrewserong/235c22b9bdd7728d3ff2cc59fdf5eb74 to your computer and use it in GitHub Desktop.
Remove dangling Docker images
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
# via docker rmi | |
docker rmi $(docker images -f “dangling=true” -q) | |
# or more elegantly | |
docker system prune | |
# remove all unused images, not just dangling ones | |
docker system prune -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment