Created
September 7, 2014 12:45
-
-
Save aiwas/1eab0b5b239f9e2d7dd2 to your computer and use it in GitHub Desktop.
Remove non-tagged images ( mainly for images failed to build )
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/bash | |
# Remove non-tagged images | |
id=$( docker images | awk '/^<none>/ { print $3 }' | tr '\n' ' ' ) | |
docker rmi ${id} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment