Last active
May 16, 2016 07:01
-
-
Save csainty/006d3795693836496a66 to your computer and use it in GitHub Desktop.
Cleanup unused docker images
This file contains hidden or 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
docker rmi $(grep -xvf <(docker ps -a --format '{{.Image}}' | sed 's/:latest//g') <(docker images | tail -n +2 | grep -v '<none>' | awk '{ print $1":"$2 }' | sed 's/:latest//g')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment