docker / for-win

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

Error dialog when starting the Docker Desktop #14059

Open HolimaX opened 4 months ago

HolimaX commented 4 months ago

Description

Previously there was no errors; Now - error dialog is shown when starting the Docker Desktop:

provisioning docker WSL distros: ensuring main distro is deployed: checking if main distro is up to date: checking main distro bootstrap version: getting main distro bootstrap version: exit code: 4294967295: running WSL command wsl.exe C:\WINDOWS\System32\wsl.exe -d docker-desktop -u root -e wsl-bootstrap version: 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/CreateInstance/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

Just start the Docker Desktop

Expected behavior

No response

docker version

N/A

docker info

N/A

Diagnostics ID

93D118B8-2C66-4F34-B789-9387200376E5/20240509094325

Additional Info

No response

dsziuzin commented 4 months ago

These steps solved error 4294967295 for me:

  1. BIOS setup: Ensure if all Virtualization options are enabled

  2. Re-enable WSL and VirtualMachine features (via Admin PowerShell):

    • DISM /online /disable-feature /featurename:VirtualMachinePlatform /norestart
    • DISM /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart then restart PC
  1. Re-enable Hyper-V feature (via Admin PowerShell):
    • dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
    • bcdedit /set hypervisorlaunchtype auto

Windows 10 version 21H2 build 19044.4412 Docker Desktop version 26.0.0 build 2ae903e

jesse-tang-93 commented 2 weeks ago

These steps solved error 4294967295 for me:

  1. BIOS setup: Ensure if all Virtualization options are enabled

  2. Re-enable WSL and VirtualMachine features (via Admin PowerShell):

    • DISM /online /enable-feature /featurename:VirtualMachinePlatform /norestart
    • DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart then restart PC
  3. Re-enable Hyper-V feature (via Admin PowerShell):

  • dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
  • bcdedit /set hypervisorlaunchtype auto

nice 🥰🥰🥰🥰