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
#!/usr/bin/sh | |
# info | |
docker system df # Show docker disk usage, including space reclaimable by pruning | |
# automatic clean up | |
docker system prune # will delete ALL unused data | |
# (i.e. In order: containers stopped, volumes without containers and images with no containers) | |
# manual clean up | |
docker container prune # Remove all stopped containers |