Docker Community Forums

Share and learn in the Docker community.

Docker Desktop for Windows WSL 2, Disk Size Limitation, How to Change?

I found that there is “undocumented” (i.e. I cannot find it documented anywhere) limitation of disk space that can be used by all images and containers created on Docker Desktop WSL2 Windows. I see that it is 251G.

Anyone knows how to change it ? I tried this https://docs.microsoft.com/en-us/windows/wsl/compare-versions#understanding-wsl-2-uses-a-vhd-and-what-to-do-if-you-reach-its-max-size, and it changed the WSL2 vdisk size, but Docker still shows 251G available disk space in all running containers (and shows that most of the space is already used, and I don’t know how to increase this space effectively)

Solution is here: