This thread is based on my issues with this one
As I see, there is no working way of using WSL routine procedures to export and then import docker-desktop-data distro of Docker if the real file of ext4.vhdx is about 500 GB
OK, in this case I want to install the Docker but set up a limit of a virtual size in this ext4.vhdx to 650 GB (not use the default size 1 TB) and export - import volumes manually into the Docker (not using the WSL import-export routines).
The thing is that I will use 1 TB disk and I do not want to have problems when the host system will stuck if Docker tries to write the data into the ext4.vhdx file and the host system is full. I just want to get error messages from Linux inside a WSL2 that the system is full)
I tried to create an ext4.vhdx manually with 650 GB size
I don’t know why, but I was able to use a workaround.
On a newly created Windows 11 Pro I have installed WSL and Docker Desktop 4.15.
And in this combination the size (virtual size) of a newly created ext4.vhdx file and appropriate /dev/sdc disk were 250 GB
Then I was able to extend both to 650 GB. Voilà!
I’m lucky with this, but the only thing that I’m interested in is that how and why the initial size of virtual disk (size) was set to 250 GB and not 1 TB
PS after updating to the latest Docker 4.19 version all the size values remain the same. Interesting that when I tried installing 4.15 version on my local workstation with Windows 10 it has still created 1 TB virtual size. So the matter is not in Docker. Seems like it just call some WSL2 API call which creates the files based on some internal parameters that differ in Windows 11 and Windows 10
Yeah, I thought that it all depended on WSL version
But both Win 11 and Win 10 have version 2
It may depend on release but I did not find how to check it
The only thing that I found was that c:\Windows\System32\wsl.exe Filу version on Win 10 is 10.0.19041.2311 and on Win11 is10.0.22621.1
Is there a way to check the release version somehow?
This does not work. The only thing that works is wsl -l -v
And as I have already said they both have version 2. No any info about particular release can be found
My distributions use WSL2 as well (as a matter of fact on Windows Home I can not use anything else) . As you see it is not mentioned anywhere in the output.
It is all about the release version.
Seems like there is an issue in Win 11. When I use wsl --version
it just throws me all possible options (like help)
In Win 10 output almost the same, except the last string Windows version: 10.0.19045.2846
Again: it is the version of the installed WSL release that is responsible for that, it is not about the Docker Desktop version, or whether WSL2 or WSL1 is used.
This is relevant version:
Note: The command and output I posted early is from Win11, and I get the same output on my two corporate Win 10 notebooks, because I use the latest WSL release version. Try wsl --update --web-download, if the command throws an error or lists the arguments, update it from the Microsoft Store app.
I hope at one point you find what you are looking for. Good luck!