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

Docker command did not complete within the allowed timeout

Open LostKatana opened this issue 9 years ago • 54 comments

Expected behavior

Docker should start with windows

Actual behavior

Docker does not start and reports an error

    Docker command did not complete within the allowed timeout. Output: 
       at Docker.Backend.MobyCommand.RunDocker(String arguments, IDictionary`2 envVariables, String stdin, Int32 timeoutMs, String cidFile) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\MobyCommand.cs:line 152
       at Docker.Backend.MobyCommand.Run(String commandLine, IDictionary`2 envVariables, Boolean load, String stdin, Int32 timeoutMs) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\MobyCommand.cs:line 49
       at Docker.Backend.SambaShare.MountInMoby(String mount, String drive, Credential cred, CredentialInfo credInfo, String options, String ip) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:line 197
       at Docker.Backend.SambaShare.MountInMoby(String drive, Credential credential, Settings settings) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:line 168
       at Docker.Backend.SambaShare.Mount(String drive, Credential credential, Settings settings) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:line 65
       at Docker.Backend.BackendServer.<Run>b__5_11(Object[] args) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\BackendServer.cs:line 54
       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 145

Information

  • Diagnostic ID: CA370BA2-3323-4876-AC18-E426A0FBFEBB/2017-07-20_09-15-32
  • Windows 10 Pro Version 1703 Systembuild 15063.413
  • Docker 17.06.0-ce-win19 (12801)

Steps to reproduce the behavior

  1. Happens on startup

Temporary Fix

  1. Go to Settings --> Reset --> Restart Docker...

LostKatana avatar Jul 20 '17 07:07 LostKatana

Just got this as well, I don't have docker set to start on login. This was on starting docker some time after starting windows. Same version: 17.06.0-ce-win19 (12801). Restarting docker worked.

I do have a large Oracle image running which takes some time to start, so it would have been starting that one up. Don't know whether that would have contributed to the timeout? Didn't see any issues with previous versions of Docker.

k25nick avatar Jul 20 '17 08:07 k25nick

Mine would not work no matter how many times I restarted. Based on Docker.Backend.SambaShare, I surmised it was due to Shared Drives being enabled. I disabled that feature, which locked up the UI, I had to quit it, then when I started Docker, this time it worked. I was then able to go back in and enable Shared Drives (C) again.

To test. Quit Docker. Started. This time it started fine as well.

FYI, I'm on Edge:

Version 17.06.1-ce-rc1-win20 (12818) Channel: edge 28a0bb2

laurinkeithdavis avatar Jul 21 '17 20:07 laurinkeithdavis

Thanks dude, restart the docker from settings works!

jmada avatar Jul 26 '17 11:07 jmada

I get this every time I start windows and have to go into settings to restart docker.

shipleyr avatar Jul 27 '17 08:07 shipleyr

Getting this every time I start Docker for Windows, and it isn't set to autostart. Have to go into settings and select restart before it'll start correctly.

runemoennike avatar Jul 27 '17 08:07 runemoennike

I have the same detail, although it is solved restarting the docker, if it is annoying to be restarting every time I log in to my operating system

Docker command did not complete within the allowed timeout. Output: at Docker.Backend.MobyCommand.RunDocker(String arguments, IDictionary2 envVariables, String stdin, Int32 timeoutMs, String cidFile) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\MobyCommand.cs:line 152 at Docker.Backend.MobyCommand.Run(String commandLine, IDictionary2 envVariables, Boolean load, String stdin, Int32 timeoutMs) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\MobyCommand.cs:line 49 at Docker.Backend.SambaShare.MountInMoby(String mount, String drive, Credential cred, CredentialInfo credInfo, String options, String ip) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:line 197 at Docker.Backend.SambaShare.MountInMoby(String drive, Credential credential, Settings settings) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:line 168 at Docker.Backend.SambaShare.Mount(String drive, Credential credential, Settings settings) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:line 65 at Docker.Backend.BackendServer.b__5_11(Object[] args) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\BackendServer.cs:line 54 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 145

jmanuelsoberano avatar Jul 31 '17 17:07 jmanuelsoberano

I downgraded from Edge to Stable (17.06.0-ce-win19 (12801)) and now I can at least Quit Docker and restart it to get it working again, but still crashing.

laurinkeithdavis avatar Jul 31 '17 17:07 laurinkeithdavis

Sometimes, I can't even Quit Docker - it gets stuck on "Docker will shut down" and I have to End Task to kill it and then restart.

When it's in this state, if I make the mistake of opening the System Tray menu, that gets stuck too and I can't even close that.

Even after restart today, will not start - same crash. This is getting ridiculous.

laurinkeithdavis avatar Aug 01 '17 15:08 laurinkeithdavis

I am also having this issue. The error is the exact same and it can be 'solved' by restarting docker once the error has popped up.

I am running Windows 10. Docker version outputs:

Client: Version: 17.06.0-ce API version: 1.30 Go version: go1.8.3 Git commit: 02c1d87 Built: Fri Jun 23 21:30:30 2017 OS/Arch: windows/amd64

Server: Version: 17.06.0-ce API version: 1.30 (minimum version 1.12) Go version: go1.8.3 Git commit: 02c1d87 Built: Fri Jun 23 21:51:55 2017 OS/Arch: linux/amd64 Experimental: true

Looking in the log file there are tons of these:

[23:26:58.918][ApiProxy ][Info ] Failed to connect to the database open \.\pipe\dockerDataBase: The system cannot find the file specified.

shortspider avatar Aug 02 '17 03:08 shortspider

Same issue as @laurin1 including the System Tray menu freezing. Also, when I open Docker settings I get a loading cursor icon, the window says "Docker is starting...", and I am unable to select anything.

morrisalp avatar Aug 02 '17 12:08 morrisalp

I have the same problem

Client: Version: 17.06.0-ce API version: 1.30 Go version: go1.8.3 Git commit: 02c1d87 Built: Fri Jun 23 21:30:30 2017 OS/Arch: windows/amd64

Server: Version: 17.06.0-ce API version: 1.30 (minimum version 1.12) Go version: go1.8.3 Git commit: 02c1d87 Built: Fri Jun 23 21:51:55 2017 OS/Arch: linux/amd64 Experimental: true

immunochomik avatar Aug 04 '17 07:08 immunochomik

I didn't had this isse now for several weeks. What I did was, as we have CD and need to change password every onca a while, heading into settings and reset docker. Befor that I removed my shared devices and after the restart I reconnected them.

LostKatana avatar Aug 04 '17 07:08 LostKatana

It looks like the docker service is in some broken state, looks like it helps to restart it.

immunochomik avatar Aug 04 '17 08:08 immunochomik

I have the same issue, thanks for @laurin1 answer. My local file protection software caused docker can not start and close correctly and quickly. Once I closed my local file protection software, my docker can run immediately.

hanalice avatar Aug 15 '17 06:08 hanalice

Same here, every single day Docker doesn't start but restarting invariably works.

Diagnostic ID: CC7AEFCD-008F-4600-A672-E1E9046087A9/2017-08-18_08-51-37

Since somebody mentioned file protection software, I'll just mention we're running the Trend Micro Security Agent (can't turn it off to test if that solves anything though)

jorispz avatar Aug 18 '17 06:08 jorispz

Also crashing when attempting to have a drive mounted via the settings interface.

085A929F-6C54-4094-938A-C5D5EC8D3739/2017-08-20_18-18-08

Amdingo avatar Aug 20 '17 22:08 Amdingo

Got the same issue for a long time on Windows 10 with Hyper-V and I just resolve it this morning by manually allowed to Windows Firewall the followings apps :

  • C:\Program Files\Docker\Docker\Docker for Windows.exe
  • C:\Program Files\Docker\Docker\DockerCli.exe

Hopes this can help

Edit : Its no need to reset default factory for me or anything else. Just add the apps and it works @laurin1 no, from control panel click "Windows Firewall", and then on the left bar click "allow apps..." see screenshot control-panel-windows

hussonkevin avatar Aug 23 '17 08:08 hussonkevin

@hussonkevin oh yeah, it worked for me :-)

ghost avatar Aug 23 '17 13:08 ghost

@hussonkevin Incoming Rules?

laurinkeithdavis avatar Aug 23 '17 19:08 laurinkeithdavis

In my experience, the issue only/always happens in cold boot (shutdown + power on) but it never occur if just restart windows or resume back from hypernate

The neither of these solution are solving error in my machine

  • reset to factory default
  • add firewall rule for DockerCli.exe / Docker for Windows.exe
  • even disable firewall / antivirus completely
  • set startup delay for docker service
  • set start up delay for docker for windows (using 3rd party app e.g. Startup Delayer)

Finally, I managed to get rid the issue by turn off the Fast Startup feature of Win10, pls follow this steps to disable it.

  • Go to windows setting -> System (display, notifications, power) -> Power & Sleep
  • Click Additional power setting
  • then open Choose what the power button do
  • then check off the Turn off fast startup

Please see the screenshot below.

fast startup

The big bonus is, as soon as windows started, the docker for windows (in tarkbar) is very quickly up and running.

atthakorn avatar Aug 24 '17 05:08 atthakorn