Skip to content

Instantly share code, notes, and snippets.

@anildigital
Created July 26, 2014 18:27
Show Gist options
  • Save anildigital/862675ec1b7bccabc311 to your computer and use it in GitHub Desktop.
Save anildigital/862675ec1b7bccabc311 to your computer and use it in GitHub Desktop.
Remove dangling docker images
docker rmi $(docker images -q -f dangling=true)
@jinnabaalu
Copy link

Some images can't be removed without -f option

docker images --quiet --filter=dangling=true | xargs --no-run-if-empty docker rmi -f

This works perfect, does the job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment