Created
October 19, 2016 01:05
-
-
Save algas/7ace475f8dfdf423c833b1a279ed3cf7 to your computer and use it in GitHub Desktop.
Remove docker images named <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
#!/bin/bash | |
docker images | awk '$1 ~ "<none>" {print $3}' | while read f; do docker rmi $f; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment