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

Docker crash on windows 10 Startup

Open quartex opened this issue 9 years ago • 73 comments

Hi, my diagnose log is 365ADF95-55AC-42A1-ADF5-8F0F62C999D8/2017-07-22_07-51-22 very ofetn on statrtup of pc Windos 10 professional (winver 1703 15063.438) docker crash with message:

Docker command did not complete within the allowed timeout. Output: in 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:riga 152 in 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:riga 49 in 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:riga 197 in Docker.Backend.SambaShare.MountInMoby(String drive, Credential credential, Settings settings) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:riga 168 in Docker.Backend.SambaShare.Mount(String drive, Credential credential, Settings settings) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\SambaShare.cs:riga 65 in Docker.Backend.BackendServer.b__5_11(Object[] args) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\BackendServer.cs:riga 54 in Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:riga 145

I close it and restart only docker and it runs.

quartex avatar Jul 22 '17 06:07 quartex

Same problem here. I always have this problem when opening Docker, but if I click "Restart Docker" on Settings -> Reset -> Restart Docker it works.

renamed avatar Jul 22 '17 14:07 renamed

Same problem. Log ID: C8D7FF10-1B9A-43BE-8B1A-05DC948AFA91/2017-07-25_06-37-35

pejaycz avatar Jul 25 '17 04:07 pejaycz

Same here!

mbunge avatar Jul 25 '17 06:07 mbunge

Same problem - reported it here by mistake: https://github.com/moby/moby/issues/34231#issuecomment-317479341

mrmunch avatar Jul 25 '17 06:07 mrmunch

Same as: #947 #943 #942 and #911

StefanJanssen95 avatar Jul 25 '17 08:07 StefanJanssen95

@mrmunch @renamed You both mentioned that you get this pretty consistently - Can you check to see if the Docker for Windows service is running next time you see this - before resetting anything?

jasonbivins avatar Jul 25 '17 14:07 jasonbivins

Same problem. Happens every time I startup my windows machine. I have to manually restart Docker every time. Docker for Windows service was running when it crashed.

i112358 avatar Jul 26 '17 01:07 i112358

@i112358 Can you post a diagnostic ID as well?

jasonbivins avatar Jul 26 '17 02:07 jasonbivins

@jasonbivins EBC05A74-4E38-4AB0-86A6-0D23E9F901A4/2017-07-26_09-00-04

i112358 avatar Jul 26 '17 06:07 i112358

I get this at startup everytime aswell. here is the latest diagnostic id : F5BB76B6-EFFB-4EAB-8CDA-CB57DB4CA6B6/2017-07-26_08-32-23

@jasonbivins : The icon in the system tray is red and says "The command did not complete in the allowed timeout...". However, the Docker For Windows service is running anyway, without actions needed on my end.

Hope it helps

LaurentVandenbosch avatar Jul 26 '17 06:07 LaurentVandenbosch

I switched to the edge build yesterday, this solved my problems.

EDIT: I thought it did work but it doesn't

StefanJanssen95 avatar Jul 26 '17 07:07 StefanJanssen95

Same problem here. Docker crashes everytime I start it first time. Restart is required to start working.

WLauret avatar Jul 26 '17 11:07 WLauret

Thanks for posting the diagnostics - can you also let me know if restarting the Docker for Windows service seems to help?

jasonbivins avatar Jul 26 '17 13:07 jasonbivins

Same here. Docker for Windows used to be ok in terms of reliability. Now its practically unusable because the Daemon startup fails all the time or the CLI tools cant find the NamedPipes, etc.

seizmo avatar Jul 27 '17 08:07 seizmo

Same issue. Diagnostic id: C003A7C0-3357-448D-9307-AB4E45F67AE0/2017-07-27_10-12-27

runemoennike avatar Jul 27 '17 08:07 runemoennike

For me, restarting Docker for Windows resolves the issue 9 out of 10 times. So I can use, it is just annoying, because Docker is not the fastest to start, so it simply takes me a lot of time every morning booting my machine and starting Docker for the first time.

WLauret avatar Jul 27 '17 09:07 WLauret

Restarting Docker for Windows did not help.

i112358 avatar Jul 28 '17 00:07 i112358

Same exact issue and error message over here too. Restarting docker usually works.

jdotlu avatar Aug 04 '17 13:08 jdotlu

Thanks, I've updated the bug report with your comments about restarting the Docker for Windows service.

jasonbivins avatar Aug 04 '17 18:08 jasonbivins

What helps me a bit is automatically restarting the service if it fails starting.

In the services menu, standard tap find the "Docker for Windows Service", right mouse button -> properties, the recovery tab. Enable automatic restarts with the two first failures. Hasn't crashed for me in 3 days.

StefanJanssen95 avatar Aug 06 '17 12:08 StefanJanssen95