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

Docker doesn't start in Windows 11

Open kongo09 opened this issue 5 years ago • 15 comments

  • [x] I have tried with the latest version of Docker Desktop
  • [x] I have tried disabling enabled experimental features
  • [x] I have uploaded Diagnostics
  • Diagnostics ID: B064E353-7A9D-44B7-9DE4-AB0C22D1EC04/20211203150318

Actual behavior

Docker engine doesn't start.

Expected behavior

Docker engine starts.

Information

  • it is reproducible. no start is possible anymore

  • it used to work with Windows 10

  • Windows Version: 11

  • Docker Desktop Version: 4.3.0.0

  • WSL2 or Hyper-V backend? WSL2

  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: no

  • I did try a complete de-install, reboot, re-install, reboot cycle.

  • I also disabled the WSL feature, rebooted and enabled the WSL feature again, rebooted again.

  • Task Manager reports virtualization enabled.

Steps to reproduce the behavior

  1. Install Docker
  2. Start Docker

Output of Check:

Please investigate the following 3 issues:

1 : The test: are the LinuxKit services running?
    Failed with: failed to ping VM diagnosticsd with error: Get "http://ipc/ping": open \\.\pipe\dockerDiagnosticd: The system cannot find the file specified.

The Docker engine runs inside a Linux VM as a service. Therefore the services must have started.

2 : The test: are the backend processes running?
    Failed with: 3 errors occurred:
        * vpnkit-bridge.exe is not running
        * vpnkit.exe is not running
        * com.docker.proxy.exe is not running



Not all of the backend processes are running.

3 : The test: is the VM networking working?
    Failed with: network checks failed: Post "http://ipc/check-network-connectivity": open \\.\pipe\dockerDiagnosticd: The system cannot find the file specified.

VM seems to have a network connectivity issue. Please check your host firewall and anti-virus settings in case they are blocking the VM.

kongo09 avatar Dec 03 '21 15:12 kongo09

  • I've now completely uninstalled Docker.
  • Removed all traces of it from the registry and the file system.
  • Reboot
  • Uninstalled Ubuntu and WSL2.
  • Reboot
  • Re-installed WSL2, with Ubuntu as default distro, which was a smooth process.
  • Reboot
  • Updated the kernel
  • Reboot
  • Updated all packages
  • Reboot
  • Re-installed the latest Docker, which was a smooth process
  • Started Docker
  • it says Docker Engine starting... for ages
  • and then fails to start

The Docker Desktop Backend is using a lot of CPU while hanging and keeps allocating memory of over 10 GB.

image

A window pops up with an error:

System.TimeoutException:
The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.ConnectInternal(Int32 timeout, CancellationToken cancellationToken, Int32 startTime)
   at System.Threading.Tasks.Task.Execute()
--- 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 HttpOverStream.NamedPipe.NamedPipeDialer.<DialAsync>d__8.MoveNext()
--- 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 HttpOverStream.Client.DialMessageHandler.<SendAsync>d__9.MoveNext()
--- 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.Core.IPC.Client.<SendAsync>d__5.MoveNext() in C:\workspaces\PR-16841\src\github.com\docker\pinata\win\src\Docker.Core\IPC\Client.cs:line 37
--- 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 System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()
--- 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.Core.HttpClientExtensions.<GetJsonAsync>d__0`1.MoveNext() in C:\workspaces\PR-16841\src\github.com\docker\pinata\win\src\Docker.Core\HttpClientExtensions.cs:line 16
--- 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.LifecycleClient.<GetDockerStateAsync>d__4.MoveNext() in C:\workspaces\PR-16841\src\github.com\docker\pinata\win\src\Docker.Engines\LifecycleClient.cs:line 49
--- 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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Docker.Engines.LinuxkitDaemonStartup.<WaitAsync>d__5.MoveNext() in C:\workspaces\PR-16841\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__28.MoveNext() in C:\workspaces\PR-16841\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\LinuxWSL2Engine.cs:line 179
--- 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-16841\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-16841\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-16841\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 92

The Check now says something different:

Please investigate the following 2 issues:

1 : The test: is the WSL 2 Linux filesystem corrupt?
    Failed with: context deadline exceeded

If the WSL 2 Linux filesystem is corrupt then Docker Desktop cannot start.
There is a known issue fixed in Windows Insider builds which can cause filesystem corruption, see: https://github.com/microsoft/WSL/issues/5895 .

Please try running "wsl --shutdown" to stop your WSL Virtual Machine. When it restarts it will run a filesystem check and hopefully fix the problem.

2 : The test: is the native API responding?
    Failed with: failed to ping tray application with error: Get "http://ipc/ping": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
                                                                                                                                                                                                                                                                                                                                                         The native API server is needed to start Docker engine.

new diagnostics ID is 0101B04C-F9EA-4CDD-83C5-D883BF330C75/20211203175232

kongo09 avatar Dec 03 '21 18:12 kongo09

I've followed the steps here: https://github.com/docker/for-win/issues/3764 but that doesn't help.

I also followed advice here: https://stackoverflow.com/questions/43041331/docker-forever-in-docker-is-starting-at-windows-task

kongo09 avatar Dec 06 '21 11:12 kongo09

I am the same,when startup win11 docker doesn't start~~but manually starting it will work

season886 avatar Dec 07 '21 10:12 season886

ITNOA

related to #12066 related to #12158 related to #12270

soroshsabz avatar Dec 08 '21 14:12 soroshsabz

I am the same,when startup win11 docker doesn't start~~but manually starting it will work

I have same problem, I properly can start manually on terminal with running daemon within, But My Docker Desktop does not start correctly :(

soroshsabz avatar Dec 08 '21 14:12 soroshsabz

I have the same issue with following details:

  • [x] I have tried with the latest version of Docker Desktop
  • [x] I have tried disabling enabled experimental features
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID:

Information

  • Windows Version: Windows 11 pro version 21H2 Build 22000.376
  • Docker Desktop Version: 4.4.4 community edition
  • WSL2 or Hyper-V backend? WSL2
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No

Steps to reproduce the behavior

  1. run docker desktop after windows restart
  2. wait for it to launch

myakhlaqi avatar Jan 01 '22 14:01 myakhlaqi

I have the same problem on WIndows 11. I have upgraded my OS from Windows 10 -> Windows 11. In WIndows 10 the Docker worked fine

win32nipuh avatar Feb 11 '22 09:02 win32nipuh

I have had the same issue but after too many search and post on Git and stack overflow (Link ) finally resolved it by fresh installations of windows. I upgraded my windows 10 to 11 and upgraded wsl2 as well but docker was failed to start.

myakhlaqi avatar Feb 11 '22 16:02 myakhlaqi

resolved it by fresh installations of windows.

Yes, that's how I resolved it for myself as well - with a new machine. It is honestly very frustrating that with all the log files and details here that his is such a mystery that blocks so many people.

kongo09 avatar Feb 11 '22 17:02 kongo09

I am in same situation , not able to fix , just upgraded from win 10 to 11. Did you roll back to 10 or did a fresh installation of win 11.

i was struggling from hours . I just did install version 4.4.4 and it working , Don't want to try & upgrade to 4.5 now seems bug in compatibility with WSL2 , win11 and docker 4.5

********Look at this *** https://github.com/docker/for-win/issues/12546

Difference noticed is this in 4.5 checkbox magically don't show image

faiyazulnoor avatar Feb 11 '22 22:02 faiyazulnoor

Only a fresh installation can resolve it

myakhlaqi avatar Feb 12 '22 03:02 myakhlaqi

@kongo09, @myakhlaqi I tried reinstalling a couple times and different versions and nothing worked, the UI would just never hsow up. The only soulution really was to delete C:\Users\<username>\AppData\Roaming\Docker and C:\Users\<username>\AppData\Roaming\Docker Desktop .

devtekve avatar Mar 06 '22 14:03 devtekve

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Jun 04 '22 01:06 docker-robott

i solved this with : https://stackoverflow.com/questions/71702448/docker-daemon-not-running-on-windows-11

JuanPablooo avatar Jul 02 '22 06:07 JuanPablooo

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Aug 31 '22 03:08 docker-robott