Created
September 7, 2019 15:04
-
-
Save k3karthic/cd4f07225e9e8b5906e89037ccd24453 to your computer and use it in GitHub Desktop.
Remove all docker images with tag '<none>'
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
#!/usr/bin/env bash | |
docker images | grep '<none>' | awk '{ print $3 }' | xargs -I{} docker rmi {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment