docker / for-win

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

"Docker Desktop WSL 2 installation failed - Diagnostics ID attached". #14370

Open Sureshv00001 opened 2 weeks ago

Sureshv00001 commented 2 weeks ago

Description

Title: Provide a descriptive title like "Docker Desktop WSL 2 installation failed - Diagnostics ID attached". Description: Briefly explain the problem, mentioning the steps you took, the error messages encountered, and the fact that Docker Desktop failed to install the WSL 2 distribution. Diagnostics ID: Include your diagnostics ID: 237AEF0B-3515-4A3B-BB75-DEF3922CCB3E/20241019132408.

Reproduce

Install Docker Desktop on Windows 11.

Ensure WSL 2 is installed and set as the default version using wsl --set-default-version 2.

Open Docker Desktop after installation.

Docker Desktop attempts to deploy the WSL 2 distributions.

The following error is encountered:

Error Message: "Docker Desktop was unable to install its distros. Restart Docker Desktop. If the issue persists, collect diagnostics and submit an issue." Logs: "waiting for 'docker-desktop' to leave the installing state: listing WSL distros: encountered malformed line while parsing WSL distro list: invalid number of fields in line..." Ran wsl --list --verbose and wsl --distribution docker-desktop, which showed:

"docker-desktop" Stopped After running Docker commands inside WSL 2, I received an error:

Command: docker run hello-world Error: -sh: docker: not found

Expected behavior

Docker Desktop should successfully install and deploy its WSL 2 distributions without errors. After installation, I should be able to run Docker commands, such as docker run hello-world, from within the WSL 2 environment, and Docker Desktop should start correctly using the WSL 2 engine.

docker version

-sh: docker: not found

docker info

-sh: docker: not found

Diagnostics ID

237AEF0B-3515-4A3B-BB75-DEF3922CCB3E/20241019132408

Additional Info

Operating System: Windows 11 Docker Desktop Version: (insert the version you installed) WSL Version: 2 Kernel Version: 5.10.102.1 Installed WSL Distributions: None (as indicated by wsl --list --verbose) Logs: The logs can be found in the following path $Env:LOCALAPPDATA\Docker\log

Sureshv00001 commented 2 weeks ago

I am experiencing an issue with Docker Desktop related to WSL updates.

Details

I have followed the recommended troubleshooting steps, including checking for Windows updates, updating WSL manually, and restarting Docker Desktop, but the issue persists.

Additional Info

Please let me know if you need any more information or logs to assist with this issue.

deniga commented 2 weeks ago

I have the same issue with Docker Desktop related to WSL updates.

Details

Diagnostics ID: 0A5BD4F4-784B-4806-8D31-998919930248/20241020183915 Error Message: Docker Desktop - WSL update failed. An error occurred while updating WSL.

loyceabbie commented 2 weeks ago

I have the same issue with Docker Desktop installation.

Details

Diagnostics ID: 9B4ECA16-07D5-4C2A-920E-0AE7240BA164/20241021082145 Error Message: Docker Desktop install failed

zubairhassan652 commented 1 week ago

I have the same issue with Docker Desktop installation.

Details

Diagnostics ID: 9A2133E5-4A4D-4A91-B35D-100E9D9C5A04/20241025075913 Error Message: Docker Desktop - WSL update failed An error occurred while updating WSL. wsl update failed: update failed: updating wsl: exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --update --web-download

Personal feedback: When i use the same command on the cmd without --web-download its executed successfully.

zubairhassan652 commented 1 week ago

I have the same issue with Docker Desktop related to WSL updates.

Details

Diagnostics ID: 0A5BD4F4-784B-4806-8D31-998919930248/20241020183915 Error Message: Docker Desktop - WSL update failed. An error occurred while updating WSL.

Are you getting failed command like below one? C:\Windows\System32\wsl.exe --update --web-download

gen973 commented 2 hours ago

Hello, As you can read in #14373 case I have the same problem. I have tried diferent things and the only way to resolve it is downgrade version to 4.31.1. It is the last working version running Docker Desktop with a non-admin user. You can try two things to confirm than we have the same problem. First, run Docker Desktop with a admin users it should work and downgrade to 4.31.1 version to check with non-admin user. You can uninstall your current version by following the steps indicated in the url: https://docs.docker.com/desktop/uninstall and next install 4.31.1 version or above. I have opened the case referenced above but I have not even received an answer. I am almost certain that this is a bug present in all versions after 4.31.1. I hope that it will be resolved in a future version if someone reviews my case.