Last active
May 3, 2018 13:44
-
-
Save Sarafian/d65d837ba109ae2b186ded024cc1448e to your computer and use it in GitHub Desktop.
How to remove unused Docker containers and images. Copy from comment in [gist](https://gist.github.com/ngpestelos/4fc2e31e19f86b9cf10b#gistcomment-1940551)
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
docker container prune # Remove all stopped containers | |
docker volume prune # Remove all unused volumes | |
docker image prune # Remove unused images | |
docker system prune # All of the above, in this order: containers, volumes, images |
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
docker system df # Show docker disk usage, including space reclaimable by pruning |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment