Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Created November 23, 2018 16:25
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 JohnPreston/04b1990c40ce72c0aae55817b7ea5dc0 to your computer and use it in GitHub Desktop.
Save JohnPreston/04b1990c40ce72c0aae55817b7ea5dc0 to your computer and use it in GitHub Desktop.
for images in `docker images |grep ecr | awk '{print $3}'`; do docker ps -a |grep $images | awk '{print $1}' | xargs -i -P10 docker rm {} ; docker rmi $images ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment