Created
February 14, 2018 02:03
-
-
Save dedelala/f483abe484feca6dab357008170b7ddf to your computer and use it in GitHub Desktop.
delete all your 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 | |
while ids=$(docker image ls -q) && [[ -n "$ids" ]]; do | |
while read -r id; do | |
docker image rm -f "$id" | |
done <<< "$ids" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment