Skip to content

Instantly share code, notes, and snippets.

@MichaelBitard
Created April 13, 2016 13:09
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 MichaelBitard/06d6b82cc4ac693c4b23164797cfe490 to your computer and use it in GitHub Desktop.
Save MichaelBitard/06d6b82cc4ac693c4b23164797cfe490 to your computer and use it in GitHub Desktop.
#Delete all images without a container
docker rmi $(docker images --no-trunc | tail -n+2 | grep -v $(docker ps -a --format '{{.Image}}') | awk '{ print $3 }')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment