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

CRITICAL: Constantly crashing Docker engine!

Open SaptaDey opened this issue 1 year ago • 7 comments

Description

Image

Constantly causing the Docker engine to crash:

running engine: waiting for the Docker API: engine linux/wsl failed to run: starting WSL engine: bootstrapping wsl: "[2025-07-30T10:34:51.513170416Z][wsl-bootstrap][F] preparing environment: mounting cli-tools iso: running mount -o ro,exec /mnt/docker-desktop-disk/isocache/entries/docker-wsl-cli.iso/2feada3bb293682fe44ed7b7500cee2b0c95c4c09e669974de02e22eb6453560 /mnt/host/wsl/docker-desktop/cli-tools: mount: /mnt/host/wsl/docker-desktop/cli-tools: unknown filesystem type 'iso9660'."

Reproduce

Docker, OS, and WSL kernel info_

  • Docker Desktop version: 4.43.2
  • Windows 11 Pro for Workstations, 25H2, 26200.5722
  • WSL version: 2.9.0
  • Kernel version: 6.6.87.2-1

Expected behavior

The error shows:

  • Docker engine is failing to start
  • It's related to WSL (Windows Subsystem for Linux)
  • The specific issue is mounting a CLI tools ISO file
  • The error is "unknown filesystem type 'iso9660'"

docker version

Client:
 Version:           28.3.2
 API version:       1.51
 Go version:        go1.24.5
 Git commit:        578ccf6
 Built:             Wed Jul  9 16:12:31 2025
 OS/Arch:           windows/amd64
 Context:           desktop-linux
error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.51/version": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.

docker info

Client:
 Version:    28.3.2
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  ai: Docker AI Agent - Ask Gordon (Docker Inc.)
    Version:  v1.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-ai.exe
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.25.0-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  cloud: Docker Cloud (Docker Inc.)
    Version:  v0.4.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-cloud.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.38.2-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.41
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Docker Inc.)
    Version:  v0.1.11
    Path:     C:\Program Files\Docker\cli-plugins\docker-desktop.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.29
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  mcp: Docker MCP Plugin (Docker Inc.)
    Version:  v0.9.9
    Path:     C:\Program Files\Docker\cli-plugins\docker-mcp.exe
  model: Docker Model Runner (EXPERIMENTAL) (Docker Inc.)
    Version:  v0.1.33
    Path:     C:\Program Files\Docker\cli-plugins\docker-model.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
  scout: Docker Scout (Docker Inc.)
    Version:  v1.18.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.51/info": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.

Diagnostics ID

F08A9D2B-4BF0-4A0C-AF3A-7569906B0330/20250730104222

Additional Info

No response

SaptaDey avatar Jul 30 '25 10:07 SaptaDey

@SaptaDey thanks for the report. The error

The error is "unknown filesystem type 'iso9660'"

means the WSL 2 kernel lacks a critical filesystem type needed by Docker. Could you try updating your WSL 2 to the latest version, for example with wsl --update?

djs55 avatar Jul 30 '25 11:07 djs55

Following is indeed the latest version of WSL2 and for WSL Kernel

WSL version: 2.9.0 Kernel version: 6.6.87.2-1

SaptaDey avatar Jul 30 '25 11:07 SaptaDey

Hey @SaptaDey - from your diagnostics it looks like you are using a custom kernel. I see the following in .wslconfig:

kernel=C:\\bzImage

Please could you try the following:

  1. Stop Docker Desktop
  2. Remove the kernel line from your .wslconfig
  3. Run wsl --shutdown
  4. Start Docker Desktop

If the problem goes away, you will need to re-compile your custom kernel with the ISO config enabled.

chelnak avatar Jul 30 '25 13:07 chelnak

Unfortunately, I was forced to make my custom kernel in the first place because the Docker desktop was failing to start whenever using the WSL 2 backend. As the Docker desktop was failing to start, I decided to create a custom kernel using the latest WSL2-Linux-Kernel. i.e., https://github.com/microsoft/WSL2-Linux-Kernel.git

Hey @SaptaDey - from your diagnostics it looks like you are using a custom kernel. I see the following in .wslconfig:

kernel=C:\\bzImage

Please could you try the following:

  1. Stop Docker Desktop
  2. Remove the kernel line from your .wslconfig
  3. Run wsl --shutdown
  4. Start Docker Desktop

If the problem goes away, you will need to re-compile your custom kernel with the ISO config enabled.

SaptaDey avatar Jul 30 '25 19:07 SaptaDey

@SaptaDey thanks for the update. It looks like the kernel config is missing the iso9660 filesystem, which is needed by Docker. Could you try re-enabling that fs, rebuilding your kernel and trying again?

djs55 avatar Jul 31 '25 09:07 djs55

Thank you for pointing that out. My custom 6.6‑series kernel was built from Microsoft/config‑wsl, which (as of July 2025) seems like it has CONFIG_ISO9660_FS unset; consequently, the kernel cannot interpret ISO‑formatted volumes, and Docker aborts.

Recompiling the same kernel with ISO‑9660 support built‑in (or as a module) still has issues.

Enabling ISO‑9660 via make menu config

scripts/config scripts/config --enable ISO9660_FS --enable JOLIET --enable ZISOFS

But interestingly, rolling back to an older kernel, everything runs smoothly. Now I can run the Docker engine if I maintain the older WSL2 kernel. I'm closing the issue for now, but the kernel incompatibility might be worth further investigation.

Thank you for your support and pointing to enable "--enable ISO9660_FS"

@SaptaDey thanks for the update. It looks like the kernel config is missing the iso9660 filesystem, which is needed by Docker. Could you try re-enabling that fs, rebuilding your kernel and trying again?

SaptaDey avatar Jul 31 '25 11:07 SaptaDey

@SaptaDey I'm glad the roll back worked. We're investigating whether we can remove the iso9660 dependency on our side to avoid this kind of problem in future.

djs55 avatar Jul 31 '25 11:07 djs55