I've been experimenting with Docker Desktop, and my docker_data.vhdx file has ballooned in size. I've tried a bunch of cleanup commands such as `docker container prune`, `docker image prune -a`, `docker volume prune`, `docker builder prune`, and `docker system prune -a --volumes`. I even attempted to manage it using diskpart commands to compact the vhdx file, but I'm still not getting much space back. Since I'm on Windows 11 Home and don't have Hyper-V, I can't use `Optimize-VHD`. Are there any other options out there for reducing the size of my docker_data.vhdx?
3 Answers
I found the solution by using the Docker GUI! Simply go to the Builds section, check the build history, and delete any old builds you don't need. After doing that, my docker_data.vhdx shrank to just 2.25 GB. It's pretty straightforward and effective!
You should definitely try running a comprehensive `docker system prune`. It’s the best way to get rid of any unused images, containers, and configurations that might be taking up space. Just a heads up, this will delete anything not currently active, so make sure you want to clear those out before executing it.
I should have mentioned that I also use `docker builder prune -a` pretty often. It might be worth trying that too if you’re looking to clean up your builds.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures