docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.84k stars 281 forks source link

not running docker #14105

Open Alok290 opened 1 month ago

Alok290 commented 1 month ago

Description

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.

Reproduce

NA

Expected behavior

No response

docker version

Docker version 26.1.1, build 4cf5afa

docker info

NA

Diagnostics ID

ED10A5A0-9D29-4B91-9654-D7BBF645E25A/20240601142726

Additional Info

NA

GaniKore2022 commented 1 month ago

7F8E3DEA-D558-402D-B867-DBDFAF3F325E/20240603174054 Showing error like unexpected WSL error Please resolve this

jpbriend commented 1 month ago

The error message is quite explicit:

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

Can you follow Microsoft instructions to install WSL 2: https://learn.microsoft.com/en-us/windows/wsl/install?

Don't forget to upgrade to WSL2.