Skip to content

Instantly share code, notes, and snippets.

@ewindisch
Created February 12, 2014 17:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewindisch/8959919 to your computer and use it in GitHub Desktop.
Save ewindisch/8959919 to your computer and use it in GitHub Desktop.
Remove docker images that aren't visible in 'docker images' (the images that only appear with 'images -a')
docker rmi $(comm -3 <(docker images -q | sort) <(docker images -q -a | sort) | sed 's/\t//')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment