Created
June 8, 2017 20:55
-
-
Save VanDavv/9f025fc43febf6f39e2ea0c748579d12 to your computer and use it in GitHub Desktop.
One-liner to remove docker images that were not labeled, resulting in label equal to '<none>'
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 | grep "<none>" | awk '{print $3}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment