Docker Desktop - Unexpected WSL error An unexpected error occurred while executing a WSL command.
Description
I Can't lunch Docker Desktop: Docker Desktop - Unexpected WSL error An unexpected error occurred while executing a WSL command.
Either shut down WSL down with wsl --shutdown, and/or reboot your machine. You can also try reinstalling WSL and/or Docker Desktop. If the issue persists,
Reproduce
Expected behavior
No response
docker version
C:\Windows\system32>docker -v
Docker version 27.1.1, build 6312585
docker info
deploying WSL2 distributions
ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "The virtual machine or container JSON document is invalid. \r\nError code: Wsl/Service/RegisterDistro/CreateVm/HCS/0x8037010d\r\n" output="docker-desktop": exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --import docker-desktop <HOME>\AppData\Local\Docker\wsl\main C:\Program Files\Docker\Docker\resources\wsl\wsl-bootstrap.tar --version 2: The virtual machine or container JSON document is invalid.
Error code: Wsl/Service/RegisterDistro/CreateVm/HCS/0x8037010d
: exit status 0xffffffff
checking if isocache exists: CreateFile \\wsl$\docker-desktop-data\isocache\: The network name cannot be found.
Diagnostics ID
AE90FA71-57E2-4265-A821-95C0B1DE6155/20240922183158
Additional Info
deploying WSL2 distributions ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "The virtual machine or container JSON document is invalid. \r\nError code: Wsl/Service/RegisterDistro/CreateVm/HCS/0x8037010d\r\n" output="docker-desktop": exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --import docker-desktop <HOME>\AppData\Local\Docker\wsl\main C:\Program Files\Docker\Docker\resources\wsl\wsl-bootstrap.tar --version 2: The virtual machine or container JSON document is invalid. Error code: Wsl/Service/RegisterDistro/CreateVm/HCS/0x8037010d : exit status 0xffffffff checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
Any fix???
Yes.. I reinstalled!
I still cant get any fix RIP
What's the current issue?
Docker Desktop - WSL update failed An error occurred while updating WSL.
You can manually update using wsl --update.
If the issue persists, collect diagnostics and submit an issue.
wsl update failed: update failed: updating wsl: exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --update --web-download: Copyright (c) Microsoft Corporation. All rights reserved.
Usage: wsl.exe [Argument] [Options...] [CommandLine]
i have different issues here already tried to reinstall , updating wsl ,unregistering ubuntu
I have Ubuntu 22.04.3 LTS installed with docker desktop version: 4.33.1 (161083): Can you try this version combination and restart your system after installation