I recently ran into a storage issue on my home server, particularly with Docker's overlay2 filesystem. After cleaning up my build cache, I reclaimed around 50GB of space, but then lost most of it back within 24-48 hours without making any new builds or deployments. A system prune only freed up about 650MB, and all my volumes are under 2GB. I suspect Docker is the main culprit causing this bloat in `/var/lib/docker`, but I'm stumped about why I can't get it cleaned up more effectively. Any thoughts?
1 Answer
Have you tried using `docker system df` to check your Docker disk usage? Also, ensure you're running standard Docker, not the snap version. If you haven't already, try `docker system prune -a` to remove all unused images and containers, but it looks like you've done some pruning already.

Yeah, I confirmed I'm using regular Docker, not snap. Pruning just got me that 650MB back. Here’s what `system df` shows: 44 images taking up 23.48GB, 48 containers at 651.1MB, and some local volumes totaling 3.566GB.