Cleanup old Docker components (volumes, containers, images..) to free up some disk space.
Maintainer: Rotem Reiss Follow me at Twitter @rotem_reiss
This tool was written for personal use, therefore I can't guarantee that:
- It will work
- It won't delete anything important
Make sure you have all the right backups before running the tool.
From your favorite CLI (e.g. bash), run the following command:
./docker-cleanup.sh
- Old containers
- Dangling images
- Untaged images
- Dangling images
- Dangling volumes
The script was only tested on Boot2Docker at this stage.
This was written by mixing some online resources and examples. I also want to thank all those who pushed for Docker's native support in the dangling filter.
Credits for those I remember: :)