for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker Desktop - Unexpected WSL error An unexpected error occurred while executing a WSL command.

Open Jamesiukalu opened this issue 1 year ago • 4 comments

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

image

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.

Jamesiukalu avatar Sep 22 '24 18:09 Jamesiukalu

Any fix???

GibranHakim12 avatar Sep 23 '24 16:09 GibranHakim12

Yes.. I reinstalled!

Jamesiukalu avatar Sep 23 '24 16:09 Jamesiukalu

I still cant get any fix RIP

GibranHakim12 avatar Sep 23 '24 17:09 GibranHakim12

What's the current issue?

Jamesiukalu avatar Sep 23 '24 19:09 Jamesiukalu

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

GibranHakim12 avatar Sep 24 '24 06:09 GibranHakim12

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

Jamesiukalu avatar Sep 24 '24 15:09 Jamesiukalu