Docker desktop crashes instantly when switching to windows containers
- [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.
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
- ... Start docker
- ... Switch to windows containers in icon menu
I have also uninstalled and then reinstalled again with no luck
+1
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.
I deleted the %ProgramData%/DockerDesktop/tmp-d4w/backend-info.json file, and it still crashes.
Copied it backend-info.zip
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.
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
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