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

Docker Failed to Initialize : Docker Desktop is Shutting Down.

Open zedd9165 opened this issue 5 years ago • 31 comments

  • [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:

Actual behavior

When running the application upon starting the docker desktop app, it shows me the error as mentioned in the subject and it doesnt start.

Expected behavior

Should start running upon opening the application.

Information

  • Windows Version:
  • Docker Desktop Version: 21h1 (OS BUILD 19043.1165)
  • WSL2 or Hyper-V backend?
    Enabled
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: Not

Log

[08:30:52.220][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:52.527][IPCClient         ][Info   ] (5c1e7562) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:52.527][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:52.829][IPCClient         ][Info   ] (ef48f141) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:52.829][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:53.134][IPCClient         ][Info   ] (65b865ae) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:53.134][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:53.453][IPCClient         ][Info   ] (407e7f0b) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:53.453][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:53.765][IPCClient         ][Info   ] (5eb08221) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:53.765][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:54.067][IPCClient         ][Info   ] (aa9cb83b) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:54.067][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:54.380][IPCClient         ][Info   ] (eaec7f63) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:54.380][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:54.693][IPCClient         ][Info   ] (8f125368) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:54.693][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:55.008][IPCClient         ][Info   ] (b2e7f848) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:55.008][GoBackendClient   ][Warning] HttpOS Client: connection timed out.
[08:30:55.321][IPCClient         ][Info   ] (92c48810) 8fa11c3c-GoBackendClient-CSharp C->S BackendAPI GET /ping
[08:30:55.321][GoBackendClient   ][Warning] HttpOS Client: connection timed out.

zedd9165 avatar Aug 23 '21 03:08 zedd9165

I am facing same problem after updating 3.6.0.

Ogulcan-Ozdemir avatar Aug 23 '21 20:08 Ogulcan-Ozdemir

I am facing same problem after updating 3.6.0. Docker cli seems working though.

I just found a solution to solve it. Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

zedd9165 avatar Aug 23 '21 20:08 zedd9165

For what it's worth, I also started having the same issue after using the auto updater to update to 3.6.0 (67351) and reinstalling also solved the problem.

franciscosamuel avatar Aug 23 '21 20:08 franciscosamuel

For what it's worth, I also started having the same issue after using the auto updater to update to 3.6.0 (67351) and reinstalling also solved the problem.

I wasnt able to solve it even after reinstalling.

zedd9165 avatar Aug 23 '21 20:08 zedd9165

I am facing same problem after updating 3.6.0. Docker cli seems working though.

I just found a solution to solve it. Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

Useful!

Wiki1991 avatar Aug 24 '21 07:08 Wiki1991

I am facing same problem after updating 3.6.0. Docker cli seems working though.

I just found a solution to solve it. Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

This worked for me aswell. Thanks!

kimberglund avatar Aug 24 '21 13:08 kimberglund

I am facing same problem after updating 3.6.0. Docker cli seems working though.

I just found a solution to solve it. Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

It works me too thanks.

Ogulcan-Ozdemir avatar Aug 24 '21 19:08 Ogulcan-Ozdemir

I am facing same problem after updating 3.6.0. Docker cli seems working though.

I just found a solution to solve it. Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

Thx !!!

rickyxume avatar Aug 26 '21 05:08 rickyxume

I followed the steps from @zedd9165

I just found a solution to solve it. Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

Then reinstall the Windows Subsystem for Linux from Microsoft itself. Link: https://docs.microsoft.com/en-us/windows/wsl/install-win10#manual-installation-steps

It only took me 5 mins to install and everything works fine again after the Docker restart.

mikependon avatar Aug 26 '21 07:08 mikependon

@mikependon tried it and it didn't be of a good help for me.

zachjonesnoel avatar Aug 31 '21 12:08 zachjonesnoel

Docker 4.0 doesn't start at all. Weird to force an upgrade, ask to pay for it, and it breaks the installation and halts all work. image

triynko avatar Sep 01 '21 16:09 triynko

After a factory reset, now it just hangs at this screen. Doesn't time out. Just stays at this screen forever. It's been a half hour. image

triynko avatar Sep 01 '21 16:09 triynko

Every time I click the taskbar icon to try to interact with it, it just launches more processes: image

triynko avatar Sep 01 '21 16:09 triynko

I am facing same problem after updating 3.6.0. Docker cli seems working though.

I just found a solution to solve it. Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

^^ that helps. Thanks @zedd9165 ! "Copy-paste"able command (asks for confirmation):

RMDIR /S %USERPROFILE%\AppData\Roaming\Docker

shut up just do it (no confirmation):

RMDIR /S /Q %USERPROFILE%\AppData\Roaming\Docker

letsjustfixit avatar Sep 02 '21 17:09 letsjustfixit

I am facing same problem after updating 3.6.0. Docker cli seems working though.

I just found a solution to solve it. Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

Not sure how you found this, but it worked for me as well! Thanks!!

jhirschibar avatar Sep 08 '21 15:09 jhirschibar

For anyone investigating. This is what shows up in the logs

time="2021-09-11T14:56:43+10:00" level=fatal msg="while parsing JSON from C:\\Users\\sugen\\AppData\\Roaming\\Docker\\settings.json: json: cannot unmarshal bool into Go struct field Content.proxyHttpMode of type string"
main.main()
	common/cmd/com.docker.backend/main.go:69 +0x31b

deleting just the settings.json file the fixes it

sugendran avatar Sep 11 '21 05:09 sugendran

I am facing same problem after updating 3.6.0. Docker cli seems working though.

I just found a solution to solve it. Go to C drive , Users, Select your user, App data, Roaming and then delete the Docker folder. You shall be able to start docker again.

Worked for me, Thank you!

ser-art avatar Sep 12 '21 21:09 ser-art

Even better, removing only the the "proxyHttpMode": ... line from settings.json helps.

onyxmaster avatar Sep 14 '21 11:09 onyxmaster

Even better, removing only the the "proxyHttpMode": ... line from settings.json helps.

Thanks @onyxmaster let me try this.

@ser-art and @sugendran it worked for a while and the issue resurfaced after restarting Docker. So just check if after restarting Docker if its working well.

zachjonesnoel avatar Sep 14 '21 14:09 zachjonesnoel

Thanks @zedd9165 for reporting this. And thanks @onyxmaster for the workaround to edit $env:APPDATA\Docker\settings.json:

Even better, removing only the the "proxyHttpMode": ... line from settings.json helps.

Indeed, we can reproduce the problem. Docker Desktop normally migrates old settings on startup, for the proxyHttpMode setting it works eg. for updates 3.2.2 -> 3.5.2, but stopped working for updates 3.2.2 -> 3.6.0 or higher. We're working on a fix for a future version.

StefanScherer avatar Sep 21 '21 09:09 StefanScherer