Created
April 13, 2016 13:09
-
-
Save MichaelBitard/06d6b82cc4ac693c4b23164797cfe490 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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