Skip to content

Instantly share code, notes, and snippets.

@titovanton
Last active September 24, 2019 15:40
Show Gist options
  • Save titovanton/d237c4dc78e8103bc72ecd6204a1fb63 to your computer and use it in GitHub Desktop.
Save titovanton/d237c4dc78e8103bc72ecd6204a1fb63 to your computer and use it in GitHub Desktop.
Docker: to remove all <none> images
#! /bin/bash
# Put that script in to the /usr/local/bin/dnr - without .sh
# Then give +x permissions
docker rmi -f $(docker images -f dangling=true -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment