Last active
June 27, 2018 08:38
-
-
Save ooneko/27104d4be6ac971d891bbc1c6584bb96 to your computer and use it in GitHub Desktop.
delete all docker images
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
| #!/bin/bash | |
| docker images |awk '!/none/ {if (NR>1) print ":"}'|xargs -I{} docker image rm {} | |
| docker images |awk '/none/ {print $3}'|xargs -I{} docker image rm {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment