Last active
March 31, 2017 07:59
-
-
Save xueruini/bc2808b7f7bb98c72702bc9965e079ff to your computer and use it in GitHub Desktop.
shell snippets
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
# update all docker images | |
docker images | tail -n +2 | awk '{printf "%s:%s\n", $1, $2}' | xargs -n 1 docker pull | |
# cleanup untagged images | |
docker images | grep "^<none>" | awk '{print $3}' | xargs -n 1 docker rmi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment