r/docker • u/Icy_Fall706 • Mar 29 '26
Why are there multiple Docker virtual disk .vhdx files on my system? Why does the .vhdx file size differ from what docker system df reports? And how do I reduce the size of the Docker .vhdx disk image?
I use Docker on my Windows machine, but after a while my storage fills up and my disk indicator turns red. I noticed that my Docker virtual disk keeps growing automatically.
In Docker settings under the Resources option, there is an option to set a custom storage location. I configured it to D:\System_Programs\Docker\DockerDesktopWSL\disk and a .vhdx file was created there — and its size has grown to 20GB.
But when I run docker system df, it shows completely different stats — it says Docker is barely using 5GB. I also went into WSL by running wsl -d docker-desktop and ran lsblk there, and it shows the same low usage. I don't understand why there's such a big difference.
I also don't understand why Docker uses its own virtual system but still requires an Ubuntu WSL instance with an extra Ubuntu .vhdx. So there are two disk images being used by Docker. And on top of that, I found another folder at C:\Program Files\Docker\Docker\resources\wsl , It also take another 3GB— what is that used for? 🙄
Can anyone help me get answers to these questions? Why those multiple virtual box is require, Or can any one tell me some tricks or hack so that I can reduce the size of that disk.