Created
November 4, 2016 11:15
-
-
Save akapitula/b90a58f91095c91e8505a45d478c04cc to your computer and use it in GitHub Desktop.
Clear unused docker images and containers
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
#NOTE: before running commands check output list to remove | |
# remove untagged docker images: | |
docker rmi $(docker images --filter "dangling=true" -q --no-trunc) | |
#remove stopped docker containers: | |
docker rm $(docker ps -q -f status=exited) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment