Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jamesiukalu opened this issue Sep 22, 2024 · 6 comments

Comments

@Jamesiukalu
Copy link

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 \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.

@GibranHakim12
Copy link

Any fix???

@Jamesiukalu
Copy link
Author

Yes.. I reinstalled!

@GibranHakim12
Copy link

I still cant get any fix RIP

@Jamesiukalu
Copy link
Author

What's the current issue?

@GibranHakim12
Copy link

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

@Jamesiukalu
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants