Skip to content

Instantly share code, notes, and snippets.

@dedelala
Created February 14, 2018 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dedelala/f483abe484feca6dab357008170b7ddf to your computer and use it in GitHub Desktop.
Save dedelala/f483abe484feca6dab357008170b7ddf to your computer and use it in GitHub Desktop.
delete all your docker images
#!/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