Skip to content

Docker engine Crashes while switching from Linux to Windows based containers #14764

Description

@JosephSeb9

Description

[ x] I have tried with the latest version of Docker Desktop You're up to date [Docker Desktop 4.40.0 (187762)]
[ x] I have tried disabling enabled experimental features
[ x] I have uploaded Diagnostics
Diagnostics ID: AA192183-F4F0-47A1-8F97-C692A0F25013/20250508123135

Actually this is an Extension of the old case #11899

Actual Behaviour

Docker engine crashes when only switching to windows

Docker Desktop encountered an unexpected error and needs to close.

reconciling docker service: configuring privileged service: starting service: pinging com.docker.service: context deadline exceeded

System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed. at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout) at Docker.Backend.Proces...

"[IPC build.buildBackendGetBuildersStream] connect ENOENT \\\\.\\pipe\\dockerDesktopBuildServer"

Information

A reproducible case if this is a bug, Dockerfiles with reproduction inside is best.
no docker files, I just switched the platforms to windows right clicking on the docker icon in the hidden/running area and selecting "Switch to Windows containers..."

  • Did it worked sometimes?...
    First the optiona of switching was not avaialbe so I reinstall the docker desktop then I got the option to switch.

  • Windows Version:
    Win 11 Enterpr, 23H2 Build 22631.5189

  • Docker Desktop Version:
    4.4.0 ... reinstalled many times...

  • WSL2 or Hyper-V backend?
    Hyper-V

  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM:
    No, I am on a physical machine (Lenovo W7, 32 GB RAM, 2+2 TB ssd, intel 8700K, nvidia geforce 1080, windows fresh install, Visual studio installed...)

  • Steps to reproduce the behavior
    On my machine, trying to change the containers type (from linux to windows) is enough

Reproduce

select the option 'Switch to Windows containers.'

Expected behavior

Should create windows based container once switched to 'Switch to Windows containers.' option

docker version

Docker version 28.0.4, build b8034c0

docker info

Client:
 Version:    28.0.4
 Context:    desktop-windows
 Debug Mode: false

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

Diagnostics ID

AA192183-F4F0-47A1-8F97-C692A0F25013/20250508123135

Additional Info

Tried couple of different ways and gone through multiple documents but this makes trouble for the docker to create windows based containers.

Also tried couple of times for 'Reset to factory defaults' but no positive results.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions