Failed to start Docker Desktop for Windows

Download Docker Desktop Version: 4.1.1

docker version output:

error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified.

Client:

 Cloud integration: 1.0.17

 Version:           20.10.8

 API version:       1.41

 Go version:        go1.16.6

 Git commit:        3967b7d

 Built:             Fri Jul 30 19:58:50 2021

 OS/Arch:           windows/amd64

 Context:           default

 Experimental:      true

When I start docker desktop, I get this error message:

System.InvalidOperationException:

distro stopped unexpectedly

   at Docker.Engines.LinuxkitDaemonStartup.<WaitAsync>d__5.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.Engines\LinuxkitDaemonStartup.cs:line 60

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Docker.Engines.WSL2.LinuxWSL2Engine.<DoStartAsync>d__29.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\LinuxWSL2Engine.cs:line 194

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Docker.ApiServices.StateMachines.TaskExtensions.<WrapAsyncInCancellationException>d__0.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\TaskExtensions.cs:line 29

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 67

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__5.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 92

But my default WSL works correctly.

  NAME                   STATE           VERSION

* Ubuntu-18.04           Running         2

  docker-desktop-data    Running         2

  docker-desktop         Running         2

Have you tried updating Docker Desktop to a later version? Or is that even an option for you?

1 Like

Works fine in the latest version of docker desktop.

I found that the reason why this doesn’t work is that my WSL2 version is relatively new. I have downgraded WSL2 and it works fine now.

What version of WSL did you downgrade to? I’ve been unable to get Docker v4.19 to work at all and v4.18 starts correctly when first installed, but not after a reboot.
I have WSL 1.1.3.0, Kernel version 5.15.90.1.

I have a post with the details of this particular issue:

Cannot run Docker Desktop 4.19.0 after install on Win10

My WSL version is the same as yours but now I use Docker Engine(release timeline is similar to Docker Desktop 4.1.1) in WSL Ubuntu 18.04 directly instead of Docker Desktop.