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

Docker desktop crashes instantly when switching to windows containers

Open JerkerPihl opened this issue 7 years ago • 8 comments

  • [X] I have tried with the latest version of my channel (Stable or Edge)
  • [X] I have uploaded Diagnostics
  • Diagnostics ID: C0EA2572-5C59-4E23-BA7F-1E8215DC01EA/20190204230934

Expected behavior

Switching to windows container

Actual behavior

Object reference not set to an instance of an object. at Docker.Backend.Features.Installer.CheckInstalledFeatures(Feature[] features) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\Features\Installer.cs:line 34 at Docker.Backend.ContainerEngine.Windows.CheckInstallation() in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 251 at Docker.Backend.ContainerEngine.Windows.DoStart(Settings settings, String daemonOptions) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 197 at Docker.Backend.ContainerEngine.Windows.Start(Settings settings, String daemonOptions) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Windows.cs:line 98 at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.b__0(Object[] parameters) in C:\workspaces\stable-18.09.x\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:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 180

Information

  • Windows Version: Windows 10 Pro version 1809
  • Docker for Windows Version: Version 2.0.0.2 (30215) Channel: stable Build: 0b030e1

Steps to reproduce the behavior

  1. ... Start docker
  2. ... Switch to windows containers in icon menu

JerkerPihl avatar Feb 04 '19 22:02 JerkerPihl

I have also uninstalled and then reinstalled again with no luck

JerkerPihl avatar Feb 05 '19 11:02 JerkerPihl

+1

rexunderlinehxiao avatar Mar 20 '19 06:03 rexunderlinehxiao

We've found a possible bug if you have a corrupt %ProgramData%/DockerDesktop/tmp-d4w/backend-info.json file. Could you paste the contents of this file please?

Also, as a workaround, you can delete the file. Please let us know if this works or doesn't work.

mikeparker avatar May 28 '19 14:05 mikeparker

I deleted the %ProgramData%/DockerDesktop/tmp-d4w/backend-info.json file, and it still crashes.

sawyer0413 avatar Jun 05 '19 00:06 sawyer0413

Copied it backend-info.zip

JerkerPihl avatar Jun 12 '19 15:06 JerkerPihl

Ok, good news - the file you linked @JerkerPihl is an invalid json file, and thats what we were expecting. We have fixed the code to deal with corrupt json files, so at least in future it won't crash.

That said, i'd still like to figure out what causes the corrupt file in the first place.

mikeparker avatar Jun 12 '19 15:06 mikeparker

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

docker-robott avatar Sep 10 '19 01:09 docker-robott

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 Jul 04 '20 03:07 docker-robott