Created
November 13, 2017 07:47
-
-
Save MattMS/7a1e839bc9f39cc56e836d834d25825e to your computer and use it in GitHub Desktop.
Delete all Docker Images with no ("<none>") tag.
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
#!/bin/sh | |
docker images | awk '$2 == "<none>" {print $3}' | xargs docker rmi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment