docker / for-win

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

Docker Desktop doesn't start after an upgrade to 4.25 #13801

Open paukart opened 7 months ago

paukart commented 7 months ago

Description

After updating to 4.25, Docker Desktop stops starting and gives the error "Updating wsl: update failed: wsl.exe --update --web-download not supported". None of the above solutions help, WSL is updated to the latest version on my PC.

image

Reproduce

  1. Upgrade Docker Desktop to version 4.25.2;
  2. Launch Docker Desktop and select the "Use recommended settings" option;
  3. Click Finish.

Expected behavior

Docker Desktop is up and running.

docker version

request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version, check if the server supports the requested API version
Client:
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:32:48 2023
 OS/Arch:           windows/amd64
 Context:           default

docker info

Client:
 Version:    24.0.6
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2-desktop.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.23.0-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.20
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v0.1.0-beta.9
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scan.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.0.9
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
ERROR: request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info, check if the server supports the requested API version
errors pretty printing info

Diagnostics ID

F775EEF3-961F-49C7-A14F-F3C0B8A555D4/20231122052334

Additional Info

Downgrade to 4.24 works fine for me

paukart commented 7 months ago

In addition, automatic updates are disabled by group policy in our organization. I think the error occurs because of this.

AlexMeowler commented 7 months ago

~~Same here, I also tried to execute that command in cmd, but argument "--web-download" not exists for my wsl (I use windows 10 btw). And "wsl --update" says no new version is found~~ UPD: ok the problem for me was that my pc was not automatically getting Windows updates, after updating manually to 22H2 i was able to run "wsl --update --web-download" and update docker

squareloop1 commented 7 months ago

Same issue, tried rolling back to older version but now docker desktop is not doing anything at all anymore. No logs, no window opening. I tried completely reinstalling multiple times, including WSL2 & Ubuntu. It seems like it is not installing the WSL2 components as a wsl -l is only listing ubuntu but not the docker backends anymore.

jnichols3 commented 7 months ago

brand new windows 11 build, installed wsl2, get this error when installing docker desktop. Can launch a terminal with Debian that is set to use wsl2, not matter how I click through the docker desktop startup it fails with the above error message.

lparkermg commented 7 months ago

Had a few issues with this myself, I had to manually update the wsl kernel via these https://github.com/microsoft/WSL/issues/5650#issuecomment-765825503 instructions (you may need to also update wsl itself along with the kernel)

jnichols3 commented 7 months ago

Had a few issues with this myself, I had to manually update the wsl kernel via these microsoft/WSL#5650 (comment) instructions (you may need to also update wsl itself along with the kernel)

that did it for me, appreciate it, kind internet stranger

mihidumh commented 7 months ago

My docker updated from 4.25.1 to 4.25.2 last night and all except 1 of my containers ports weren't binding, running wsl --update --web-download and then rebooting the Windows host fixed it, thanks!

AntonGorynya commented 6 months ago

I have had a same issue. I resolved it by two steps:

Chebura commented 6 months ago

I have same problem, This command is invalid for wsl2, --web-download not found

wsl --status default version: 2 core version 5.10.102.1. with ubuntu 20.04LTS

OS: Windows 10 21H2, installed latest updates. Rebooted many times.

It does not works with Docker desktop 4.26.1

4.25.0 release notes: "Docker Desktop now detects if a WSL version is out of date. If an out dated version of WSL is detected, you can allow Docker Desktop to automatically update the installation or you can manually update WSL outside of Docker Desktop." It seems that problem with incorrect WSL version detection.

ttadesse627 commented 6 months ago

I am new and have not used Docker previously. I installed it for the first time, and its installation was successful. But I couldn't start and run. docker-startup-failure

mrniko commented 6 months ago

@ttadesse627

Docker Windows client has been broken since 4.25.0 version. Try 4.24.2 version.

FuFuWarrior commented 4 months ago

I solved this by using the command wsl --update.

Note: Powershell must opened with run as adminstrator

sergejasadchij commented 4 months ago

@ttadesse627

Docker Windows client has been broken since 4.25.0 version. Try 4.24.2 version.

4.24.2 version works for me. thanks!

mrniko commented 4 months ago

@sergejasadchij

try 4.27.2 as well. It works for me now

Gandalf-z commented 1 month ago

I solved this by using the command wsl --install --web-download