Skip to content

Instantly share code, notes, and snippets.

@VanDavv
Created June 8, 2017 20:55
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 VanDavv/9f025fc43febf6f39e2ea0c748579d12 to your computer and use it in GitHub Desktop.
Save VanDavv/9f025fc43febf6f39e2ea0c748579d12 to your computer and use it in GitHub Desktop.
One-liner to remove docker images that were not labeled, resulting in label equal to '<none>'
docker rmi $(docker images | grep "<none>" | awk '{print $3}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment