Open hiwebdev26 opened 3 months ago
Can you make sure WSL2 is enabled?
You can find documentation on how to verify and how to enable it here.
First, please check if you have it on your BIOS, and if all the features needed (Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform, and Windows Subsystem for Linux) in optionalfeatures.exe are checked. If it's not the problem, you probably need to try the answer at https://github.com/microsoft/WSL/issues/7068#issuecomment-1304559607.
Description
now, I'm using windows 11. During install docker on my system, I faced this issues:
An unexpected error occurred while executing a WSL command.
deploying WSL2 distributions provisioning docker WSL distros: ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "WSL2 is not supported with your current machine configuration.\r\nPlease enable the \"Virtual Machine Platform\" optional component and ensure virtualization is enabled in the BIOS.\r\nEnable \"Virtual Machine Platform\" by running: wsl.exe --install --no-distribution\r\nFor information please visit https://aka.ms/enablevirtualization\r\nError code: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED\r\n" output="docker-desktop": exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --import docker-desktop\AppData\Local\Docker\wsl\main C:\Program Files\Docker\Docker\resources\wsl\wsl-bootstrap.tar --version 2: WSL2 is not supported with your current machine configuration.
Please enable the "Virtual Machine Platform" optional component and ensure virtualization is enabled in the BIOS.
Enable "Virtual Machine Platform" by running: wsl.exe --install --no-distribution
For information please visit https://aka.ms/enablevirtualization
Error code: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED
: exit status 0xffffffff
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache\: The network name cannot be found.
Docker version 26.1.1, build 4cf5afa
My diagnostics ID : C32C7D3E-3AA0-4C32-805A-D139FE428454/20240527085914
Reproduce
No response
Expected behavior
it was at the start page of docker
docker version
docker info
Diagnostics ID
C32C7D3E-3AA0-4C32-805A-D139FE428454/20240527085914
Additional Info
No response