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 Update #14057

Open RaiZr89 opened 5 months ago

RaiZr89 commented 5 months ago

Description

Docker Desktop - WSL update failed " when I installed "Docker desktop 4.29.0" for the first time.

Today,when i tried to install Docker on my desktop,the wsl update failed. i already tried toupdate Windows to the latest version,and still gives me the error.

Reproduce

Untitled

Expected behavior

WSL failed

docker version

Docker Desktop 4.29.0 (145265)

docker info

Docker Desktop 4.29.0 (145265)

Diagnostics ID

454B6EC7-6F14-42EA-9E94-034EFD6F95CC/20240507201717

Additional Info

No response

tjy-cool commented 5 months ago

I'm having this problem too. The network policy I'm on restricts the execution of wsl --update, but I've already updated wsl offline and it's set to wsl 2, but I'm stuck at wsl --update and it won't let me get to the docker windows software interface! image image

s4b2x commented 5 months ago

This solution from another issue worked for me:

https://github.com/docker/for-win/issues/14022#issuecomment-2082253793

I also encountered the same problem. Perhaps it's my network problem, and trying the above methods and running "wsl -- update" in PS is ineffective The final solution is to find the offline update package for WSL, After installing the latest version of WSL, version 4.28.0 of Docker Desktop was successfully launched. Download address: https://github.com/microsoft/WSL/releases

tjy-cool commented 5 months ago

I upgraded windows from 21H2 to 22H2 and was able to run wsl --update and then install docker-windows successfully!