Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timed out while waiting for Docker daemon to be ready #2302

Closed
2 tasks done
pkhsu opened this issue Jul 27, 2018 · 49 comments
Closed
2 tasks done

Timed out while waiting for Docker daemon to be ready #2302

pkhsu opened this issue Jul 27, 2018 · 49 comments

Comments

@pkhsu
Copy link

pkhsu commented Jul 27, 2018

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID:D5169AE3-A5AA-4945-B1BE-73641D4DB126/20180727165231

Expected behavior

Get started with Docker, and pull 'hello-world image' nornally.

Actual behavior

Timed out while waiting for Docker daemon to be ready
於 Docker.Backend.Processes.WindowsDockerDaemon.WaitForDaemonToBeReady() 於 C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\Processes\WindowsDockerDaemon.cs: 行 147
於 Docker.Backend.ContainerEngine.Windows.DoStart(Settings settings, String daemonOptions) 於 C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs: 行 222
於 Docker.Backend.ContainerEngine.Windows.Restart(Settings settings, String daemonOptions) 於 C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs: 行 153
於 Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.b__0(Object[] parameters) 於 C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs: 行 48
於 Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) 於 C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs: 行 180

Information

  • Windows Version: Win10
  • Docker for Windows Version: 18.06.0-ce-win72 (19098)

Steps to reproduce the behavior

@geedsen
Copy link

geedsen commented Jul 27, 2018

Just uninstalled Docker and Installed it again as I had the same problem as above. I still have actually after the reinstall. Windows 10 as well (latest version).

Timed out while waiting for Docker daemon to be ready
at Docker.Backend.Processes.WindowsDockerDaemon.WaitForDaemonToBeReady() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\Processes\WindowsDockerDaemon.cs:line 147
at Docker.Backend.ContainerEngine.Windows.DoStart(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 222
at Docker.Backend.ContainerEngine.Windows.Start(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 96
at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.b__0(Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 48
at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 180

@robv8r
Copy link

robv8r commented Jul 27, 2018

I'm having the same issue since upgrading to the most recent version.

Client:
 Version:           18.06.0-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        0ffa825
 Built:             Wed Jul 18 19:05:28 2018
 OS/Arch:           windows/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.0-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       0ffa825
  Built:            Wed Jul 18 19:13:46 2018
  OS/Arch:          linux/amd64
  Experimental:     false

@dazinator
Copy link

dazinator commented Jul 30, 2018

Same problem here.

Timed out while waiting for Docker daemon to be ready
at Docker.Backend.Processes.WindowsDockerDaemon.WaitForDaemonToBeReady() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\Processes\WindowsDockerDaemon.cs:line 147
at Docker.Backend.ContainerEngine.Windows.DoStart(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 222
at Docker.Backend.ContainerEngine.Windows.Start(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 96
at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.b__0(Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 48
at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 180

Problem persists even after factory reset, and also a full uninstall / re-install of docker.

crash report ID: E3848FD7-05DB-4B46-8A92-C76B6CCA34F9/20180730152328

@im-vignesh
Copy link

Try to roll back the Windows update. That solved this issue for me..

@geedsen
Copy link

geedsen commented Jul 31, 2018

Which Windows update? I tried several restore points none of them worked for me.

@reecebradley
Copy link

reecebradley commented Jul 31, 2018

same as #2311
#2323 (same stack trace)
#2330 (same symptoms)
#2335 (might be the same, not much detail but similar result)
I had uninstalled Docker and installed Version 17.12.0-ce-rc4-win44 (14896), and Docker works now. Don't have a more recent release :-(

Forgot to add #2298

@geedsen
Copy link

geedsen commented Jul 31, 2018

@reecebradley Where did you find the old version?

@reecebradley
Copy link

I had it lying around in my Downloads folder. However, I remember a situation like this in the past, you might find an answer in this Issue

@geedsen
Copy link

geedsen commented Jul 31, 2018

@reecebradley I found another way of getting an older version. Install Chocolatey if you don't have it yet ( https://chocolatey.org/) and then in an elevated powershell prompt run "Choco list docker-for-windows --all" to see all versions available and run for example "Choco install docker-for-windows -version 18.03.1.17513" to install the mentioned version, make sure you uninstall the version you don't want first.

@dazinator
Copy link

dazinator commented Jul 31, 2018

Yeah I had to roll back to the previous version too, so i can work again. It's a shame though because I was looking forward to the new ability in this release to mount named pipes on windows. I hope this can be fixed soon so I can upgrade :-)

@mscherpenisse
Copy link

same here
diagnostics id: A8311D3D-F4CC-4042-BF8C-E3B140E4188C/20180731222600

Version: 18.06.0-ce-win72 (19098)
Channel: stable
Sha1: 5513f91045dac2b8d51420014ee9176d24791d7d
Started on: 2018/07/31 22:20:37.257
Resources: C:\Program Files\Docker\Docker\Resources
OS: Windows 10 Enterprise
Edition: Enterprise
Id: 1803
Build: 17134
BuildLabName: 17134.1.amd64fre.rs4_release.180410-1804

@mo-esmp
Copy link

mo-esmp commented Aug 15, 2018

Same here, I did factory reset and uninstall re-install but still have problem.
Version 18.06.0-ce-win72 (19098)
Channel: stable
5513f91

@geedsen
Copy link

geedsen commented Aug 21, 2018

Still having this problem. It's Docker for Windows crashing, the Docker service keeps running but, with a very high cpu (up to 37%) and the memory usage is enormous: 10Gb. While there is actually nothing to do.
untitled

@byte2pixel
Copy link

I have this issue as well

@reecebradley
Copy link

reecebradley commented Aug 31, 2018

Maybe the issue is fixed now, it started up and seems stable even though I'm on edge:
Version 18.06.1-ce-win74 (19508)
Channel: edge
68d201c

Confirm anyone else?

@robv8r
Copy link

robv8r commented Sep 1, 2018

One thing that worked for a colleague was to reset WinRM. If you are still experiencing this problem, please provide the output of winrm /quickconfig

@jcjwent
Copy link

jcjwent commented Sep 4, 2018

The solution provided here: #2353 (comment) worked out for me

@ft-uk-buildbot
Copy link

ft-uk-buildbot commented Sep 4, 2018

@robv8r

If you are still experiencing this problem, please provide the output of winrm /quickconfig

On windows 10 latest update:

winrm /quickconfig
Error: Unknown operation name: ''

However: winrm qc which I believe does the same thing, gives:


WinRM service is already running on this machine.
WSManFault
    Message
        ProviderFault
            WSManFault
                Message = WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Change the network connection type to either Domain or Private and try again.

Error number:  -2144108183 0x80338169
WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Change the network connection type to either Domain or Private and try again.

So I set the network connection profiles from "public" to "private" following this: http://www.hurryupandwait.io/blog/fixing-winrm-firewall-exception-rule-not-working-when-internet-connection-type-is-set-to-public

Now winrm qc gives:

winrm qc
WinRM service is already running on this machine.
WinRM is already set up for remote management on this computer.

Tried to start docker again now that winrm qc suceeds, but docker still fails to start:

image

@blowdart
Copy link

blowdart commented Sep 5, 2018

Same,

Timed out while waiting for Docker daemon to be ready
   at Docker.Backend.Processes.WindowsDockerDaemon.WaitForDaemonToBeReady() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\Processes\WindowsDockerDaemon.cs:line 147
   at Docker.Backend.ContainerEngine.Windows.DoStart(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 222
   at Docker.Backend.ContainerEngine.Windows.Restart(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 153
   at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.<Register>b__0(Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 48
   at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 180

Crash ID 8E976C42-DB00-4C9F-B535-31A3CCA349E0/20180905142927

WinRM qc reports

WinRM service is already running on this machine.
WinRM is already set up for remote management on this computer.

I'd reset the hyper-v switch networks to be private to get WinRM to work via Set-NetConnectionProfile -interfacealias "vEthernet (Default Switch)" -NetworkCategory Private

@tomzorz
Copy link

tomzorz commented Sep 5, 2018

Also #2289 is probably the same.

@xtremeperf
Copy link

I think I know what's causing this. It took me forever to figure it out on my machine. Can someone, or even several, of you guys reply with the output from these four Powershell commands, please? Be sure to run as admin. We'll see if we can get this fixed. Thanks.

(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").CurrentBuild

Get-VMNetworkAdapter -ManagementOS

Get-NetAdapter | Format-Table Name,InterfaceDescription,ifIndex,Status,LinkSpeed,MediaConnectionState

Get-NetIPInterface

@mo-esmp
Copy link

mo-esmp commented Sep 29, 2018

17134

Name                   IsManagementOs VMName SwitchName     MacAddress   Status IPAddresses
----                   -------------- ------ ----------     ----------   ------ -----------
Container NIC 223afaf2 True                  nat            00155D6E1B9C {Ok}
Container NIC d4e28e93 True                  Default Switch 9215F1F8A0E3 {Ok}
DockerNAT              True                  DockerNAT      00155D00090E {Ok}



Name                          InterfaceDescription                                                             ifIndex Status       LinkSpeed MediaConnectionState
----                          --------------------                                                             ------- ------       --------- --------------------
VirtualBox Host-Only Network  VirtualBox Host-Only Ethernet Adapter                                                 25 Up           1 Gbps               Connected
Ethernet 3                    Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64      23 Not Present  0 bps                  Unknown
vEthernet (DockerNAT)         Hyper-V Virtual Ethernet Adapter                                                      20 Up           10 Gbps              Connected
Ethernet                      Realtek PCIe GBE Family Controller                                                    16 Up           1 Gbps               Connected
VMware Network Adapter VMnet8 VMware Virtual Ethernet Adapter for VMnet8                                            14 Up           100 Mbps             Connected
VMware Network Adapter VMnet1 VMware Virtual Ethernet Adapter for VMnet1                                            13 Up           100 Mbps             Connected
vEthernet (Default Switch)    Hyper-V Virtual Ethernet Adapter #2                                                   10 Up           10 Gbps              Connected
vEthernet (nat)               Hyper-V Virtual Ethernet Adapter #3                                                    6 Up           10 Gbps              Connected
Ethernet 2                    TAP-Windows Adapter V9                                                                 3 Disconnected 100 Mbps          Disconnected



ifIndex InterfaceAlias                AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore
------- --------------                ------------- ------------ --------------- ----     --------------- -----------
14      VMware Network Adapter VMnet8 IPv6                  1500              35 Enabled  Connected       ActiveStore
13      VMware Network Adapter VMnet1 IPv6                  1500              35 Enabled  Connected       ActiveStore
25      VirtualBox Host-Only Network  IPv6                  1500              25 Enabled  Connected       ActiveStore
6       vEthernet (nat)               IPv6                  1500            5000 Enabled  Connected       ActiveStore
20      vEthernet (DockerNAT)         IPv6                  1500              15 Disabled Connected       ActiveStore
3       Ethernet 2                    IPv6                  1500              35 Enabled  Disconnected    ActiveStore
10      vEthernet (Default Switch)    IPv6                  1500            5000 Enabled  Connected       ActiveStore
16      Ethernet                      IPv6                  1500              25 Enabled  Connected       ActiveStore
1       Loopback Pseudo-Interface 1   IPv6            4294967295              75 Disabled Connected       ActiveStore
14      VMware Network Adapter VMnet8 IPv4                  1500              35 Enabled  Connected       ActiveStore
13      VMware Network Adapter VMnet1 IPv4                  1500              35 Enabled  Connected       ActiveStore
25      VirtualBox Host-Only Network  IPv4                  1500              25 Disabled Connected       ActiveStore
6       vEthernet (nat)               IPv4                  1500            5000 Enabled  Connected       ActiveStore
20      vEthernet (DockerNAT)         IPv4                  1500              15 Disabled Connected       ActiveStore
3       Ethernet 2                    IPv4                  1500               1 Disabled Disconnected    ActiveStore
10      vEthernet (Default Switch)    IPv4                  1500            5000 Enabled  Connected       ActiveStore
16      Ethernet                      IPv4                  1500              25 Enabled  Connected       ActiveStore
1       Loopback Pseudo-Interface 1   IPv4            4294967295              75 Disabled Connected       ActiveStore

@blowdart
Copy link

blowdart commented Oct 1, 2018

This is after I uninstalled, because it was just getting too irritating. Let me know if you want one after an install.

(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").CurrentBuild
17763

Get-VMNetworkAdapter -ManagementOS

Name                       IsManagementOs VMName SwitchName                 MacAddress   Status IPAddresses
----                       -------------- ------ ----------                 ----------   ------ -----------
External Networking        True                  External Networking        480FCF67050F {Ok}
Internal Networking        True                  Internal Networking        00155D20A400 {Ok}
Windows 7 Internal Network True                  Windows 7 Internal Network 00155D20A415 {Ok}
Container NIC e46254b8     True                  Default Switch             021503380940 {Ok}
Container NIC 0c11bd83     True                  HvsiIcs                    021503E6245D {Ok}


Get-NetAdapter | Format-Table Name,InterfaceDescription,ifIndex,Status,LinkSpeed,MediaConnectionState

Name                                   InterfaceDescription                     ifIndex Status       LinkSpeed MediaCon
                                                                                                               nectionS
                                                                                                                   tate
----                                   --------------------                     ------- ------       --------- --------
vEthernet (Default Switch)             Hyper-V Virtual Ethernet Adapter #4           10 Up           10 Gbps   ...ected
Ethernet                               Intel(R) Ethernet Connection (2) I218-LM      15 Up           1 Gbps    ...ected
vEthernet (Internal Networking)        Hyper-V Virtual Ethernet Adapter #2           14 Up           10 Gbps   ...ected
vEthernet (External Networking)        Hyper-V Virtual Ethernet Adapter              13 Up           1 Gbps    ...ected
Ethernet 3                             PANGP Virtual Ethernet Adapter #2             50 Disconnected 2 Gbps    ...ected
vEthernet (HvsiIcs)                    Hyper-V Virtual Ethernet Adapter #5           29 Up           10 Gbps   ...ected
vEthernet (Windows 7 Internal Network) Hyper-V Virtual Ethernet Adapter #3            7 Up           10 Gbps   ...ected


C:\Users\bdorrans> Get-NetIPInterface

ifIndex InterfaceAlias                  AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore
------- --------------                  ------------- ------------ --------------- ----     --------------- -----------
29      vEthernet (HvsiIcs)             IPv6                  1500            5000 Enabled  Connected       ActiveStore
10      vEthernet (Default Switch)      IPv6                  1500            5000 Enabled  Connected       ActiveStore
7       vEthernet (Windows 7 Interna... IPv6                  1500              15 Enabled  Connected       ActiveStore
50      Ethernet 3                      IPv6                  1400              20 Enabled  Disconnected    ActiveStore
14      vEthernet (Internal Networking) IPv6                  1500              15 Enabled  Connected       ActiveStore
13      vEthernet (External Networking) IPv6                  1500              25 Enabled  Connected       ActiveStore
1       Loopback Pseudo-Interface 1     IPv6            4294967295              75 Disabled Connected       ActiveStore
29      vEthernet (HvsiIcs)             IPv4                  1500            5000 Disabled Connected       ActiveStore
10      vEthernet (Default Switch)      IPv4                  1500            5000 Disabled Connected       ActiveStore
7       vEthernet (Windows 7 Interna... IPv4                  1500              15 Enabled  Connected       ActiveStore
50      Ethernet 3                      IPv4                  1400              20 Enabled  Disconnected    ActiveStore
14      vEthernet (Internal Networking) IPv4                  1500              15 Enabled  Connected       ActiveStore
13      vEthernet (External Networking) IPv4                  1500              25 Enabled  Connected       ActiveStore
1       Loopback Pseudo-Interface 1     IPv4            4294967295              75 Disabled Connected       ActiveStore

@paulwarwicker
Copy link

image

PS C:\WINDOWS\system32> (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").CurrentBuild
17134
PS C:\WINDOWS\system32> Get-VMNetworkAdapter -ManagementOS

Name                   IsManagementOs VMName SwitchName         MacAddress   Status IPAddresses
----                   -------------- ------ ----------         ----------   ------ -----------
External VM Switch     True                  External VM Switch 00155D011512 {Ok}
Container NIC 3bc44e3f True                  nat                00155DC7FDBB {Ok}
Container NIC 94a5aa9e True                  Default Switch     12151EC62343 {Ok}
ExternalSwitch         True                  ExternalSwitch     B0104177D751 {Ok}


PS C:\WINDOWS\system32> Get-NetAdapter | Format-Table Name,InterfaceDescription,ifIndex,Status,LinkSpeed,MediaConnectionState

Name                           InterfaceDescription                         ifIndex Status       LinkSpeed MediaConnectionState
----                           --------------------                         ------- ------       --------- --------------------
vEthernet (ExternalSwitch)     Hyper-V Virtual Ethernet Adapter                  37 Disconnected 0 bps             Disconnected
Network Bridge                 Microsoft Network Adapter Multiplexor Driver      36 Disconnected 0 bps             Disconnected
Bluetooth Network Connection   Bluetooth Device (Personal Area Network)          30 Disconnected 3 Mbps            Disconnected
vEthernet (Default Switch)     Hyper-V Virtual Ethernet Adapter #4               27 Up           10 Gbps              Connected
vEthernet (External VM Switch) Hyper-V Virtual Ethernet Adapter #3               21 Up           10 Gbps              Connected
Ethernet                       Realtek PCIe GBE Family Controller                14 Up           1 Gbps               Connected
vEthernet (nat)                Hyper-V Virtual Ethernet Adapter #2               10 Up           10 Gbps              Connected
Wi-Fi                          Dell Wireless 1703 802.11b/g/n (2.4GHz)            8 Disconnected 72.2 Mbps         Disconnected


PS C:\WINDOWS\system32> Get-NetIPInterface

ifIndex InterfaceAlias                  AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore
------- --------------                  ------------- ------------ --------------- ----     --------------- -----------
30      Bluetooth Network Connection    IPv6                  1500              65 Disabled Disconnected    ActiveStore
37      vEthernet (ExternalSwitch)      IPv6                  1500              75 Enabled  Disconnected    ActiveStore
27      vEthernet (Default Switch)      IPv6                  1500            5000 Enabled  Connected       ActiveStore
10      vEthernet (nat)                 IPv6                  1500            5000 Enabled  Connected       ActiveStore
21      vEthernet (External VM Switch)  IPv6                  1500              15 Enabled  Connected       ActiveStore
1       Loopback Pseudo-Interface 1     IPv6            4294967295              75 Disabled Connected       ActiveStore
24      Local Area Connection* 4        IPv6                  1500              25 Disabled Disconnected    ActiveStore
6       Local Area Connection* 2        IPv6                  1500              25 Disabled Disconnected    ActiveStore
14      Ethernet                        IPv6                  1500              25 Enabled  Connected       ActiveStore
30      Bluetooth Network Connection    IPv4                  1500              65 Enabled  Disconnected    ActiveStore
37      vEthernet (ExternalSwitch)      IPv4                  1500              75 Enabled  Disconnected    ActiveStore
27      vEthernet (Default Switch)      IPv4                  1500            5000 Enabled  Connected       ActiveStore
10      vEthernet (nat)                 IPv4                  1500            5000 Enabled  Connected       ActiveStore
21      vEthernet (External VM Switch)  IPv4                  1500              15 Enabled  Connected       ActiveStore
1       Loopback Pseudo-Interface 1     IPv4            4294967295              75 Disabled Connected       ActiveStore
24      Local Area Connection* 4        IPv4                  1500              25 Enabled  Disconnected    ActiveStore
6       Local Area Connection* 2        IPv4                  1500              25 Enabled  Disconnected    ActiveStore
14      Ethernet                        IPv4                  1500              25 Disabled Connected       ActiveStore


PS C:\WINDOWS\system32>
Timed out while waiting for Docker daemon to be ready
   at Docker.Backend.Processes.WindowsDockerDaemon.WaitForDaemonToBeReady() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\Processes\WindowsDockerDaemon.cs:line 147
   at Docker.Backend.ContainerEngine.Windows.DoStart(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 222
   at Docker.Backend.ContainerEngine.Windows.Start(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 96
   at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.<Register>b__0(Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 48
   at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 180

@paulwarwicker
Copy link

And after uninstalling and re-installing Edge version...

Note:
a) this still fails for me on edge channel unlike @reecebradley but I have not rebooted in between
b) the DockerNAT adapter was missing previously but is now defined

image

PS C:\WINDOWS\system32> Get-VMNetworkAdapter -ManagementOS

Name                   IsManagementOs VMName SwitchName         MacAddress   Status IPAddresses
----                   -------------- ------ ----------         ----------   ------ -----------
External VM Switch     True                  External VM Switch 00155D011512 {Ok}
Container NIC 3bc44e3f True                  nat                00155DC7FDBB {Ok}
Container NIC 94a5aa9e True                  Default Switch     12151EC62343 {Ok}
ExternalSwitch         True                  ExternalSwitch     B0104177D751 {Ok}
DockerNAT              True                  DockerNAT          00155D01154A {Ok}


PS C:\WINDOWS\system32> Get-NetAdapter | Format-Table Name,InterfaceDescription,ifIndex,Status,LinkSpeed,MediaConnectionState

Name                           InterfaceDescription                         ifIndex Status       LinkSpeed MediaConnectionState
----                           --------------------                         ------- ------       --------- --------------------
vEthernet (ExternalSwitch)     Hyper-V Virtual Ethernet Adapter                  37 Disconnected 0 bps             Disconnected
Network Bridge                 Microsoft Network Adapter Multiplexor Driver      36 Disconnected 0 bps             Disconnected
Bluetooth Network Connection   Bluetooth Device (Personal Area Network)          30 Disconnected 3 Mbps            Disconnected
vEthernet (DockerNAT)          Hyper-V Virtual Ethernet Adapter #5               42 Up           10 Gbps              Connected
vEthernet (Default Switch)     Hyper-V Virtual Ethernet Adapter #4               27 Up           10 Gbps              Connected
vEthernet (External VM Switch) Hyper-V Virtual Ethernet Adapter #3               21 Up           10 Gbps              Connected
Ethernet                       Realtek PCIe GBE Family Controller                14 Up           1 Gbps               Connected
vEthernet (nat)                Hyper-V Virtual Ethernet Adapter #2               10 Up           10 Gbps              Connected
Wi-Fi                          Dell Wireless 1703 802.11b/g/n (2.4GHz)            8 Disconnected 72.2 Mbps         Disconnected


PS C:\WINDOWS\system32> Get-NetIPInterface

ifIndex InterfaceAlias                  AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore
------- --------------                  ------------- ------------ --------------- ----     --------------- -----------
30      Bluetooth Network Connection    IPv6                  1500              65 Disabled Disconnected    ActiveStore
42      vEthernet (DockerNAT)           IPv6                  1500              15 Disabled Connected       ActiveStore
37      vEthernet (ExternalSwitch)      IPv6                  1500              75 Enabled  Disconnected    ActiveStore
27      vEthernet (Default Switch)      IPv6                  1500            5000 Enabled  Connected       ActiveStore
10      vEthernet (nat)                 IPv6                  1500            5000 Enabled  Connected       ActiveStore
21      vEthernet (External VM Switch)  IPv6                  1500              15 Enabled  Connected       ActiveStore
1       Loopback Pseudo-Interface 1     IPv6            4294967295              75 Disabled Connected       ActiveStore
24      Local Area Connection* 4        IPv6                  1500              25 Disabled Disconnected    ActiveStore
6       Local Area Connection* 2        IPv6                  1500              25 Disabled Disconnected    ActiveStore
14      Ethernet                        IPv6                  1500              25 Enabled  Connected       ActiveStore
30      Bluetooth Network Connection    IPv4                  1500              65 Enabled  Disconnected    ActiveStore
42      vEthernet (DockerNAT)           IPv4                  1500              15 Disabled Connected       ActiveStore
37      vEthernet (ExternalSwitch)      IPv4                  1500              75 Enabled  Disconnected    ActiveStore
27      vEthernet (Default Switch)      IPv4                  1500            5000 Enabled  Connected       ActiveStore
10      vEthernet (nat)                 IPv4                  1500            5000 Enabled  Connected       ActiveStore
21      vEthernet (External VM Switch)  IPv4                  1500              15 Enabled  Connected       ActiveStore
1       Loopback Pseudo-Interface 1     IPv4            4294967295              75 Disabled Connected       ActiveStore
24      Local Area Connection* 4        IPv4                  1500              25 Enabled  Disconnected    ActiveStore
6       Local Area Connection* 2        IPv4                  1500              25 Enabled  Disconnected    ActiveStore
14      Ethernet                        IPv4                  1500              25 Disabled Connected       ActiveStore


PS C:\WINDOWS\system32>
Timed out while waiting for Docker daemon to be ready
   at Docker.Backend.Processes.WindowsDockerDaemon.WaitForDaemonToBeReady() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\Processes\WindowsDockerDaemon.cs:line 156
   at Docker.Backend.ContainerEngine.Windows.DoStart(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 222
   at Docker.Backend.ContainerEngine.Windows.Start(Settings settings, String daemonOptions) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 96
   at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.<Register>b__0(Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 48
   at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 180

@Monte-Christo
Copy link

`
PS C:\WINDOWS\system32> (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").CurrentBuild
17134
PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32> Get-VMNetworkAdapter -ManagementOS

Name IsManagementOs VMName SwitchName


DockerNAT True DockerNAT
Internal Ethernet Port Windows Phone Emulator Internal Switch True Windows Phone Emulator Internal ...
External Switch LAN True External Switch LAN
Internal True Internal
Container NIC 8bdc3fd3 True nat

PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32> Get-NetAdapter | Format-Table Name,InterfaceDescription,ifIndex,Status,LinkSpeed,MediaConnection
State

Name InterfaceDescription ifIn
dex


vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch) Hyper-V Virtual Ethernet Adapter #5 25
vEthernet (nat) Hyper-V Virtual Ethernet Adapter 26
Hyper-V Internal Hyper-V Virtual Ethernet Adapter #2 19
vEthernet (External Switch LAN) Hyper-V Virtual Ethernet Adapter #3 16
Ethernet 2 TAP-Windows Adapter V9 15
Bluetooth Network Connection Bluetooth Device (Personal Area Network) 13
Ethernet Intel(R) Ethernet Connection (2) I219-V 12
Wi-Fi Intel(R) Dual Band Wireless-AC 8260 11
vEthernet (DockerNAT) Hyper-V Virtual Ethernet Adapter #6 2

PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32> Get-NetIPInterface

ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore


15 Ethernet 2 IPv6 1500 35 Enabled Disconnected ActiveStore
2 vEthernet (DockerNAT) IPv6 1500 15 Disabled Connected ActiveStore
25 vEthernet (Internal Ethernet... IPv6 1500 15 Enabled Connected ActiveStore
16 vEthernet (External Switch LAN) IPv6 1500 25 Enabled Connected ActiveStore
19 Hyper-V Internal IPv6 1500 15 Enabled Connected ActiveStore
26 vEthernet (nat) IPv6 1500 5000 Enabled Connected ActiveStore
31 Local Area Connection* 3 IPv6 1500 25 Disabled Disconnected ActiveStore
13 Bluetooth Network Connection IPv6 1500 65 Disabled Disconnected ActiveStore
32 Local Area Connection* 1 IPv6 1500 25 Disabled Disconnected ActiveStore
1 Loopback Pseudo-Interface 1 IPv6 4294967295 75 Disabled Connected ActiveStore
11 Wi-Fi IPv6 1500 35 Enabled Disconnected ActiveStore
15 Ethernet 2 IPv4 1500 35 Enabled Disconnected ActiveStore
2 vEthernet (DockerNAT) IPv4 1500 15 Disabled Connected ActiveStore
25 vEthernet (Internal Ethernet... IPv4 1500 15 Disabled Connected ActiveStore
16 vEthernet (External Switch LAN) IPv4 1500 25 Enabled Connected ActiveStore
19 Hyper-V Internal IPv4 1500 15 Disabled Connected ActiveStore
26 vEthernet (nat) IPv4 1500 5000 Enabled Connected ActiveStore
31 Local Area Connection* 3 IPv4 1500 25 Enabled Disconnected ActiveStore
13 Bluetooth Network Connection IPv4 1500 65 Enabled Disconnected ActiveStore
32 Local Area Connection* 1 IPv4 1500 25 Enabled Disconnected ActiveStore
1 Loopback Pseudo-Interface 1 IPv4 4294967295 75 Disabled Connected ActiveStore
11 Wi-Fi IPv4 1500 35 Enabled Disconnected ActiveStore

PS C:\WINDOWS\system32>`

image

@Monte-Christo
Copy link

I found a work-around.

@xtremeperf
Copy link

xtremeperf commented Oct 6, 2018

From what I can tell after evaluating the output you guys have posted, you are all having problems related to invalid Windows networking configuration.

Two things seem to cause DNS resolution problems and Docker error "Timed out while waiting for Docker daemon to be ready", especially while switching to Windows containers mode...

  • Network interfaces binding order being incorrect
  • A manually assigned NetNat existing on the system

Network traffic will be routed to the network interface having the lowest InterfaceMetric value. If you take a peak at your routing tables, you will notice that route metric and interface metric are summed up and then used to determine routing. Lower values have priority.

Although it may appear your routing tables are correct, because IPs are getting routed correctly but DNS is not, the Host Networking Service (HNS) also needs to configure DNS properly, and it uses InterfaceMetric for choosing routes based on priority. HNS is a brand new Windows service that works alongside WinNAT and VFP drivers, dynamically creating port forwarding rules, mapping and policy for those drivers. HNS is also responsible for the creation and management of virtual switches, address translation (NAT), IP addresses, IP pools, DNS, namespaces, endpoints, ports, filter driver policies, etc. for both Hyper-V and Docker.

I think that HNS is actually supposed to be able to recognize MediaConnectionState and re-order routes appropriately when an adapter is in the disconnected or disabled state, but currently this functionality does not exist in HNS, therefore it is required that you manually set the order using InterfaceMetric values when there are multiple physical network adapters present.

THE SOLUTION:
Assign your primary internet-connected network adapter a lower InterfaceMetric value than the other physical adapters which are present.

By default, Windows automatically assigns InterfaceMetric values based on LinkSpeed. Gigabit Ethernet adapters are often assigned the lowest value of '5' and 802.11ac Wi-Fi adapters are often assigned a value of '35'. In this example case, if Wi-Fi is your primary internet-connected network adapter, and Ethernet is disconnected or even disabled, your containers and VMs might have direct IP address communication, but no DNS resolution, and it's likely you would get a "Timed out while waiting for Docker daemon to be ready" error when attempting to start Docker or switch to Windows Containers mode.

Run the following in an elevated Powershell session to view current configuration:
Get-NetIPInterface | Sort-Object -Property InterfaceMetric -Descending

Then assign your primary interface ('Wi-Fi' in this example) to a lower InterfaceMetric than all others:
Set-NetIPInterface -InterfaceAlias 'Wi-Fi' -InterfaceMetric 3

Make sure InterfaceMetric is changed to the same low value for both IPv4 and IPv6. You can also change adapter options in Windows control panel, instead of Powershell, by un-checking "automatic metric" and entering a value in the field.

Note: you should not have any NetNats set up manually, as this will break things currently. Remove all NetNats by running the following in an elevated Powershell session:
Get-NetNat | Remove-NetNat

Also, you will want to remove any external switches, bridges or internet connection sharing until everything else is configured and working properly.

Reboot until 'Default Switch' and 'nat' are both in the 172.16.0.0/12 range (172.16.0.0 - 172.31.255.255). Sometimes it takes a couple reboots for HNS to get it right. If your system uses a 'vEthernet (HvsiIcs)' network adapter, it may not appear until after you open Microsoft Edge browser in Application Guard mode first. This adapter will most likely be assigned an IP in the 192.168.0.0/16 range (192.168.0.0 - 192.168.255.255).

If HNS is struggling to get it right, or if you want to completely remove all dynamic switches and start with a fresh HNS configuration, you can do the following with elevated permissions:

  • Stop both Docker services
  • Stop the HNS service (may require stopping WDAG dependency service first)
  • Delete any remaining NAT switches (except DockerNAT): Default Switch, nat, HvsiIcs
  • Never delete the 'DockerNat' switch that's used for Docker in Linux Containers mode
  • Delete HNS data file: del C:\ProgramData\Microsoft\Windows\HNS\hns.data
  • Reboot (multiple times, if necessary, as described above)

Keep in mind that the HNS service does it's work dynamically and on-the-fly, so if you are browsing network switches in Hyper-V/Docker, or running Get-Net* commands in Powershell, the HNS service will be queried during these actions and may overwrite your settings, and will likely re-start the HNS and/or Docker services. I recommend completing your tasks and rebooting immediately.

@Monte-Christo
Copy link

Thanks for the suggestions. Default Switch' and 'nat' were already in the correct range. I tried to apply them all, but am not sure what to do about the following. My IT department set up my main Ethernet connection to use "vEthernet (External Switch LAN)".

Here is the relevant excerpt from ipconfig:

Ethernet adapter vEthernet (External Switch LAN):

   Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #3
   Physical Address. . . . . . . . . : 50-7B-9D-DF-45-41
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::e51a:7cb6:10c5:8005%14(Preferred)
   IPv4 Address. . . . . . . . . . . : 172.26.7.186(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   NetBIOS over Tcpip. . . . . . . . : Enabled
    
Ethernet adapter vEthernet (Default Switch):

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #4
   Physical Address. . . . . . . . . : 12-15-B2-F7-F1-18
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::d010:f262:1e75:cd70%73(Preferred)
   IPv4 Address. . . . . . . . . . . : 172.17.32.225(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.240
   NetBIOS over Tcpip. . . . . . . . : Disabled
   
 Ethernet adapter vEthernet (nat):

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter
   Physical Address. . . . . . . . . : 00-15-5D-EC-9D-AD
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::9584:65fb:bf22:5125%19(Preferred)
   IPv4 Address. . . . . . . . . . . : 172.22.144.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   NetBIOS over Tcpip. . . . . . . . : Disabled  

Docker 18.0.6.1-ce still fails to run Windows containers, timing out instead. Linux containers seem to work. Any idea what to do about "vEthernet (External Switch LAN)"?

@Monte-Christo
Copy link

Also, why can I run version 18.0.3.1 without issue with my existing network setup, but 18.0.6.1 runs only in Linux container mode?

@DarqueWarrior
Copy link

If you need to install an old version so you can get back to work you can download from here https://docs.docker.com/docker-for-windows/release-notes/#docker-community-edition-18060-ce-win72-2018-07-26 Version 18.03.1-ce-win65 (17513) did the trick for me.

@nimerix
Copy link

nimerix commented Oct 10, 2018

I encountered this issue on a long-lived Windows 10 machine. In this case, it was due to one or more conflicting tweaks/hacks/workarounds/etc in the Hyper-V default switch configuration. As the changes were ancient and, thus, long forgotten, I fixed it by cutting my losses and running:

Stop-Service -Name vmms
Get-HNSNetwork | Remove-HNSNetwork
Start-Service -Name vmms

@xtremeperf
Copy link

@Monte-Christo There were so many major code changes between 18.03 and 18.06 that it's really hard to guess why 18.03 works in your case.

Regarding your 'vEthernet (External Switch LAN)' network adapter. My testing has shown that an External switch that's been bridged to the primary physical adapter, or uses it's gateway via ICS, can be problematic and can cause the issue that you're experiencing. The Host Networking Service (HNS) that Windows 10 uses for Docker is extremely finicky right now in general, and I've found that any network configuration other than the standard "default" style configuration can cause issues and making troubleshooting very difficult. It's easiest to start from a good "baseline". I recommend making note of your current networking configuration and then reset it all back to "default" to get Docker running, and then make your custom changes back to it one by one after it works. That being said, I would completely remove the "External Switch Lan" virtual switch and associated host network adapter. Of coarse, you may want to check with your IT dept. first to make sure that's okay to do.

Also, I would recommend upgrading Docker to the current edge branch release v2.0.0.0-beta1-win75, if you can. I've found it to be much more stable, and there are additional code changes in this version that relate to host name resolution. Not sure if it would help you, but when I was running versions 18.06.xx the "experimental" mode always seemed to work better, as did setting the daemon configuration in Advanced mode.

Good luck getting things working. If you need anything feel free to reply. I'll be keeping an eye on this issue.

@Monte-Christo
Copy link

Monte-Christo commented Oct 12, 2018

Thanks for the assessment and the suggestions, @xtremeperf.
Further investigation on our end has revealed that the laptop experiencing the problem is the only one that has also had VMs running under Hyper-V before upgrading to or installing Docker 18.0.6. All the others had enabled Virtualization only to run Docker, Is it possible that the External Switch was added when configuring Hyper-V to run VMs?
I will try version 2 beta and report back if it helped.

@Monte-Christo
Copy link

Unfortunately, Docker for Windows v2.0.0.0-beta1 has the same problem as v18.0.6. Trying to switch to Windows container mode results in a timeout.

@xtremeperf
Copy link

Yes, your 'External Switch LAN' most definitely wasn't created by Docker. That would have been set up for the Hyper-V VMs. External switches, when created in the Hyper-V Virtual Switch Manager, get bridged to the host computer's physical network adapter, and therefore any VM setup to use the External Switch will get set up on the host's upstream network as if it were another physical machine in the office.

I'm looking back again through the command output you posted, and there is so much that doesn't make since. I'm thinking that there are network configuration issues that have been caused by changes made over a period of time, and it's all conflicting right now. One thing that doesn't make since is the order of the Hyper-V Virtual Ethernet Adapters. They should be numbered in the order in which they were created, and there's no way they should have been created in that order.

That external switch needs to be removed to start with. I doubt it's even being used for anything, right? You really need to wipe out the whole network configuration and configure it from scratch using the directions I posted earlier. It's easy enough to set a restore point, or copy down those settings, just in case you want to roll it back to the current config.

Also, you need Virtualization Enabled, but you need two specific features installed and active in Windows under "Turn Windows Features On/Off". You can search for that in Windows to take you straight there. "Hyper-V" needs to be activated, and "Containers" needs to be activated. Not the Container Image Manager, though. Also, be sure that BOTH Docker services are running when you switch to Windows Containers mode... the Docker Daemon is called Docker Engine (dockerd.exe) and the Docker Docker to the Named Pipe is called Docker for Windows Service (com.docker.service)

@Monte-Christo
Copy link

@xtremeperf. OK, I was able to remove the External Switch and some other junk, followed your instructions above about the HNS service, but am still getting the timeout with the newer Docker versions. I also did the vms bit suggested by @nimerix . Here is what i am down to:

PS C:\WINDOWS\system32> Get-NetIPInterface | Sort-Object -Property InterfaceMetric -Descending

ifIndex InterfaceAlias                  AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore
------- --------------                  ------------- ------------ --------------- ----     --------------- -----------
18      vEthernet (Default Switch)      IPv4                  1500            5000 Enabled  Connected       ActiveStore
18      vEthernet (Default Switch)      IPv6                  1500            5000 Enabled  Connected       ActiveStore
1       Loopback Pseudo-Interface 1     IPv6            4294967295              75 Disabled Connected       ActiveStore
1       Loopback Pseudo-Interface 1     IPv4            4294967295              75 Disabled Connected       ActiveStore
10      Bluetooth Network Connection    IPv6                  1500              65 Disabled Disconnected    ActiveStore
10      Bluetooth Network Connection    IPv4                  1500              65 Enabled  Disconnected    ActiveStore
22      Local Area Connection* 3        IPv4                  1500              25 Enabled  Disconnected    ActiveStore
23      Local Area Connection* 1        IPv4                  1500              25 Enabled  Disconnected    ActiveStore
22      Local Area Connection* 3        IPv6                  1500              25 Disabled Disconnected    ActiveStore
23      Local Area Connection* 1        IPv6                  1500              25 Disabled Disconnected    ActiveStore
8       Wi-Fi                           IPv4                  1500              10 Enabled  Disconnected    ActiveStore
8       Wi-Fi                           IPv6                  1500              10 Enabled  Disconnected    ActiveStore
9       Ethernet                        IPv6                  1500               5 Enabled  Connected       ActiveStore
9       Ethernet                        IPv4                  1500               5 Enabled  Connected       ActiveStore

I am unable o to remove anything else as I can only disable network adapters, the delete option is grayed out. I also checked in device manager, but none of these Loopback or Local Area Connection thingies appears there.

How do I get back to a clean slate?

@Balther
Copy link

Balther commented Oct 17, 2018

I have this issue too, which is a certain show stopper in using Docker.

@xtremeperf
Copy link

xtremeperf commented Oct 18, 2018

@Monte-Christo Your networking is looking pretty good now. You definitely have the InterfaceMetric values configured properly. Something must still be preventing localhost access, and stopping the daemon from accessing the named pipe. I would suggest evaluating the Docker troubleshooting logs after it fails to start, to get your next clue about what's preventing access.

As far as a clean slate, you would un-install Docker, and then remove Windows Features that enable Hyper-V and Containers. Then restart Windows a couple times. Then enable Hyper-V and Containers features in Windows. Restart a couple times. Then install Docker. Again, making sure that your InterfaceMetric is ordered appropriately.

@mojoex
Copy link

mojoex commented Oct 18, 2018

After having tested Docker for Windows on a Windows 10 machine, I decided to use this for our CI with Jenkins on a Server 2016 (1607) machine. But we are seeing the exact same issues described here.

I've tried all the suggestions but nothing seems to have helped. This is a brand new server with no prior network configuration or Hyper-V configuration - just an out of the box install with Hyper-V and Container features installed.

@mojoex
Copy link

mojoex commented Oct 19, 2018

After having tested Docker for Windows on a Windows 10 machine, I decided to use this for our CI with Jenkins on a Server 2016 (1607) machine. But we are seeing the exact same issues described here.

I've tried all the suggestions but nothing seems to have helped. This is a brand new server with no prior network configuration or Hyper-V configuration - just an out of the box install with Hyper-V and Container features installed.

I found the cause of the issue in my particular case and raised a new ticket here; #2768

Hopefully this helps others experiencing a similar issue.

@Monte-Christo
Copy link

@xtremeperf I followed your suggestions for a clean start, but am still getting the timeout with Windows containers. Linux containers work just fine. Downgrading to 18..03 again. When I have some time, I will dig into the logs. This is getting frustrating, the more so as many others are seeing this.

@Monte-Christo
Copy link

Monte-Christo commented Oct 25, 2018

After my latest unsuccessful attempt at getting Docker for Windows 18.0.6 Stable or 2.0.0.0 Beta1 Edge to run Windows containers, I created another diagnostics upload.

Diagnostic ID: 3EA8E0C9-3981-4E36-BB55-5A0D609553CC/20181025132736

In the logs there are about 25000 separate entries just like this one:

[13:06:32.093][ApiProxy       ][Info   ] time="2018-10-25T13:06:32+02:00" msg="proxy >> GET /v1.24/events\n"
[13:06:32.093][ApiProxy       ][Info   ] time="2018-10-25T13:06:32+02:00" msg="open \\\\.\\pipe\\docker_engine_windows: Access is denied."
[13:06:32.093][ApiProxy       ][Error  ] time="2018-10-25T13:06:32+02:00" msg="Error watch events stream: Error response from daemon: open \\\\.\\pipe\\docker_engine_windows: Access is denied."

My Windows event log is full of these errors, all occurring multiple times:

Log Name:      Microsoft-Windows-Hyper-V-Worker-Admin
Source:        Microsoft-Windows-Hyper-V-Integration
Date:          25.10.2018 13:35:19
Event ID:      4092
Task Category: None
Level:         Error
Keywords:      
User:          NT VIRTUAL MACHINE\1495DC51-4C71-44E2-B0DB-230DBDB6B83F
Computer:      NBAT000.aim.aim-sw.com
Description:
'MobyLinuxVM': The Data Exchange integration service is either not enabled, not running or not initialized. (Virtual machine ID 1495DC51-4C71-44E2-B0DB-230DBDB6B83F)
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Hyper-V-Integration" Guid="{2B74A015-3873-4C56-9928-EA80C58B2787}" />
    <EventID>4092</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2018-10-25T11:35:19.259140300Z" />
    <EventRecordID>3067</EventRecordID>
    <Correlation ActivityID="{9CD2FCE8-6C45-0000-C377-D39C456CD401}" />
    <Execution ProcessID="15624" ThreadID="8896" />
    <Channel>Microsoft-Windows-Hyper-V-Worker-Admin</Channel>
    <Computer>NBAT000.aim.aim-sw.com</Computer>
    <Security UserID="S-1-5-83-1-345365585-1155681393-220453808-1069070013" />
  </System>
  <UserData>
    <VmlEventLog xmlns="http://www.microsoft.com/Windows/Virtualization/Events">
      <VmName>MobyLinuxVM</VmName>
      <VmId>1495DC51-4C71-44E2-B0DB-230DBDB6B83F</VmId>
      <Param1>
      </Param1>
      <Param2>
      </Param2>
      <Param3>
      </Param3>
    </VmlEventLog>
  </UserData>
</Event>

Log Name:      Application
Source:        docker
Date:          25.10.2018 13:28:57
Event ID:      1
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      NBAT000.aim.aim-sw.com
Description:
Handler for GET /v1.24/services returned error: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="docker" />
    <EventID Qualifiers="0">1</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2018-10-25T11:28:57.936531000Z" />
    <EventRecordID>958671</EventRecordID>
    <Channel>Application</Channel>
    <Computer>NBAT000.aim.aim-sw.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Handler for GET /v1.24/services returned error: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.</Data>
  </EventData>
</Event>

Log Name:      System
Source:        Microsoft-Windows-Hyper-V-VmSwitch
Date:          25.10.2018 13:28:56
Event ID:      80
Task Category: None
Level:         Error
Keywords:      
User:          SYSTEM
Computer:      NBAT000.aim.aim-sw.com
Description:
Failed to complete operation 'Policy Enum' on switch D5483504-2313-457F-A0B5-10F4559F424C (Friendly Name: DockerNAT) Property Id {1550e863-4337-4917-a040-5a27dbc58b59} Instance Id {00000000-0000-0000-0000-000000000000}. Status = {Drive Not Ready}
The drive is not ready for use; its door may be open. Please check drive %hs and make sure that a disk is inserted and that the drive door is closed..
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Hyper-V-VmSwitch" Guid="{67DC0D66-3695-47C0-9642-33F76F7BD7AD}" />
    <EventID>80</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2018-10-25T11:28:56.083600400Z" />
    <EventRecordID>140054</EventRecordID>
    <Correlation />
    <Execution ProcessID="5820" ThreadID="4640" />
    <Channel>System</Channel>
    <Computer>NBAT000.aim.aim-sw.com</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data Name="Status">3221225635</Data>
    <Data Name="SwitchNameLen">36</Data>
    <Data Name="SwitchName">D5483504-2313-457F-A0B5-10F4559F424C</Data>
    <Data Name="SwitchFNameLen">9</Data>
    <Data Name="SwitchFName">DockerNAT</Data>
    <Data Name="PropertyId">{1550E863-4337-4917-A040-5A27DBC58B59}</Data>
    <Data Name="InstanceId">{00000000-0000-0000-0000-000000000000}</Data>
    <Data Name="UniqueEvent">5</Data>
    <Data Name="Operation">4</Data>
  </EventData>
</Event>

What do I do?

@TheDoubleH
Copy link

Same issue - diagnostic id: 39386141-1BB1-4FB7-ADB7-F1652D21D3F0/20181116111139

@xtremeperf
Copy link

Hey @Monte-Christo

It looks like you have an issue going on with permissions. Have you tried as admin?

@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d 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

@mrbrazzi
Copy link

mrbrazzi commented Sep 9, 2019

Same issue here! I'm using Docker v2.1.0.2.

When I try to start Docker, i got this error window:
docker-crash-lifecycle-server-timeout

A crash report was uploaded with diagnostic ID:
E37D09A7-F695-4F6A-9380-A544CF140879/20190909181724

@duanlvxin
Copy link

meet the same problem...
图片

@docker-robott
Copy link
Collaborator

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 docker locked and limited conversation to collaborators Jun 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests