Skip to content

Instantly share code, notes, and snippets.

@mario21ic
Created December 20, 2017 21:48
Show Gist options
  • Save mario21ic/908a35474a09b1ff891ed75e4cdd6d38 to your computer and use it in GitHub Desktop.
Save mario21ic/908a35474a09b1ff891ed75e4cdd6d38 to your computer and use it in GitHub Desktop.
Script to delete a list of docker image tags
#!/bin/bash
for i in $(seq $2 $3)
do
AMI="$1":"$i"
echo "Delete iamge: "$AMI
docker rmi -f $AMI
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment