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

Docker Engine doesn't start after build latest Microsoft WSL2 kernel

Open valorisa opened this issue 10 months ago • 12 comments

Description

When i start Docker Desktop, after the build WSL2 Microsoft kernel 5.5 to the latest linux-msft-wsl-6.6.75.1, I get following message : " running engine: waiting for the Docker API: engine linux/wsl failed to run: starting WSL engine: error spotted in wslbootstrap log: "[2025-03-12T11:06:57.776897900Z][wsl-bootstrap][F] exit status 32"

Reproduce

Launch Docker Desktop

Expected behavior

Docker Desktop should run perfectly and don't fail to start

Image

docker version

Client:
 Version:           27.5.1
 API version:       1.47
 Go version:        go1.22.11
 Git commit:        9f9e405
 Built:             Wed Jan 22 13:41:44 2025
 OS/Arch:           windows/amd64
 Context:           desktop-linux

docker info

Client:
 Version:    27.5.1
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  ai: Ask Gordon - Docker Agent (Docker Inc.)
    Version:  v0.7.3
 
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.20.1-desktop.2
  
  compose: Docker Compose (Docker Inc.)
    Version:  v2.32.4-desktop.1
   
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.38
 
  desktop: Docker Desktop commands (Beta) (Docker Inc.)
    Version:  v0.1.4
    
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
   
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.27
 
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
 
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
   
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0

  scout: Docker Scout (Docker Inc.)
    Version:  v1.16.1

Diagnostics ID

C9C18C82-A0ED-4551-97DA-FA98BCC01693/20250312111052

Additional Info

https://github.com/microsoft/WSL2-Linux-Kernel

20250312111052.zip

Image Image

valorisa avatar Mar 12 '25 13:03 valorisa

Same issue

RohanMishra315 avatar Mar 13 '25 03:03 RohanMishra315

Same issue, it's not working after latest Windows update 😒

wvargas-ods avatar Mar 13 '25 13:03 wvargas-ods

https://github.com/microsoft/WSL2-Linux-Kernel/releases/tag/linux-msft-wsl-6.6.75.1

valorisa avatar Mar 13 '25 13:03 valorisa

Try the latest version WSL : https://github.com/microsoft/WSL/releases/tag/2.5.1

valorisa avatar Mar 13 '25 15:03 valorisa

hey @valorisa can you give the step by step guide how can we intergrate into our system , this release version.

RohanMishra315 avatar Mar 15 '25 13:03 RohanMishra315

hey @valorisa can you give the step by step guide how can we intergrate into our system , this release version.

  1. Open comand prompt as an admin

  2. Run wsl --update

  3. Close comand prompt.

  4. Restart and run docker

Hawkeye131 avatar Mar 15 '25 14:03 Hawkeye131

hey @valorisa can you give the step by step guide how can we intergrate into our system , this release version.

  1. Open comand prompt as an admin
  2. Run wsl --update
  3. Close comand prompt.
  4. Restart and run docker

I had done that wsl --update but it showing 2.4.11 not the updated release version. I had extracted the file, did I have to do something more ..?

RohanMishra315 avatar Mar 15 '25 14:03 RohanMishra315

hey @valorisa can you give the step by step guide how can we intergrate into our system , this release version.

Hey @RohanMishra315

Open Windows Terminal with command: cmd.exe and into your current directory make a: wget https://github.com/microsoft/WSL/releases/download/2.5.1/wsl.2.5.1.0.x64.msi and always in the Terminal make a: msiexec.exe /package wsl.2.5.1.0.x64.msi

valorisa avatar Mar 15 '25 14:03 valorisa

@valorisa

Image

RohanMishra315 avatar Mar 15 '25 14:03 RohanMishra315

@valorisa

Image

Try again and let me know the result.

Image

valorisa avatar Mar 15 '25 15:03 valorisa

Image

valorisa avatar Mar 15 '25 15:03 valorisa

Have 2.5.1 installed. Use wsl --update --pre-release on Windows Insider.

Sadly, Docker fails to start. See the last comment in https://github.com/microsoft/WSL/issues/12711 for more details.

Diagnostic ID:A35AFAC6-713D-4217-973C-0EC45FE25DAB/20250319185854

evgri243 avatar Mar 19 '25 19:03 evgri243

I probably managed to pinpoint the issue (at least for Windows on Arm). The new 6.x versions of the kernel are built without ISO Disk Image Data Format support. Docker mounts CLI to WSL during the startup as an .iso file and fails due to Kernel lacking lacking ISO9660 support. Hopefully, Microsoft will rebuild the kernel in a future release.

Confirmation that it works:

Image

Meanwhile, check my comment in the WSL thread microsoft/WSL#12711 for more details on how to identify whether the root cause is the same and build a custom Linux kernel until then.

evgri243 avatar Mar 28 '25 22:03 evgri243