Skip to content

Instantly share code, notes, and snippets.

@k3karthic
Created September 7, 2019 15:04
Show Gist options
  • Save k3karthic/cd4f07225e9e8b5906e89037ccd24453 to your computer and use it in GitHub Desktop.
Save k3karthic/cd4f07225e9e8b5906e89037ccd24453 to your computer and use it in GitHub Desktop.
Remove all docker images with tag '<none>'
#!/usr/bin/env bash
docker images | grep '<none>' | awk '{ print $3 }' | xargs -I{} docker rmi {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment