Skip to content

Instantly share code, notes, and snippets.

@zinovyev
Created December 15, 2016 12:11
Show Gist options
  • Save zinovyev/0b2f9b2b45862c0c2e47b46a9407cddd to your computer and use it in GitHub Desktop.
Save zinovyev/0b2f9b2b45862c0c2e47b46a9407cddd to your computer and use it in GitHub Desktop.
Remove docker images with name <none>
docker images | awk '{if ($1 == "<none>") print "docker rmi "$3" -f"}' | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment