Created
February 24, 2020 17:55
-
-
Save Tarliton/8d3b0debacc7abd69b8025eb37664658 to your computer and use it in GitHub Desktop.
docker commands
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 docker images | |
docker images | awk '{if(NR>1)print $1 ":" $2}' | xargs -n1 docker pull | |
# remove dangling images | |
docker images | grep none | awk '{print $3}' | xargs docker rmi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove exited containers