Failed to deploy distro docker-desktop
System.InvalidOperationException: Failed to deploy distro docker-desktop to C:\Users\Chakrit Rakhuang\AppData\Local\Docker\wsl\distro: exit code: -1 stdout: Error: 0xffffffff
stderr:
at Docker.Core.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Core\WslCommand.cs:line 119
at Docker.Engines.WSL2.WSL2Provisioning.
Version: 2.3.0.4 (46911)
Channel: stable
Sha1: d4f5fcf98140180eeef00e02c1c8bb0ad69e35d3
Started on: 2020/08/24 15:53:13.437
Resources: C:\Program Files\Docker\Docker\resources
OS: Windows 10 Enterprise
Edition: Enterprise
Id: 2004
Build: 19041
BuildLabName: 19041.1.amd64fre.vb_release.191206-1406
File: C:\Users\Chakrit Rakhuang\AppData\Local\Docker\log.txt
CommandLine: "C:\Program Files\Docker\Docker\Docker Desktop.exe"
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[15:53:13.704][GUI ][Info ] Starting...
[15:53:13.773][ComponentVersions ][Info ] Edition community
[15:53:13.775][ComponentVersions ][Info ] Edition community
[15:53:14.823][AppMigrator ][Info ] Current version: 6. Latest version: 6
[15:53:14.884][TrackingSettings ][Info ] Crash report and usage statistics are enabled
[15:53:14.888][SegmentApi ][Info ] Usage statistic: Identify
[15:53:15.228][SegmentApi ][Info ] Usage statistic: appLaunched
[15:53:16.279][ApplicationTemplatesTracking][Info ] Cannot list templates
[15:53:16.279][SegmentApi ][Info ] Usage statistic: eventTemplatesInfo
[15:53:16.281][SegmentApi ][Info ] Usage statistic: heartbeat
[15:53:16.557][LoggingMessageHandler][Info ] [9a7f340a]
stderr:
[15:53:57.401][LinuxWSL2Engine ][Info ] Stopping windows side processes
[15:53:57.641][LinuxWSL2Engine ][Info ] Stopping engine
[15:53:57.725][LoggingMessageHandler][Info ] [9c1f0816]
stderr: [15:54:02.129][LinuxWSL2Engine ][Info ] Stopping windows side processes [15:54:02.338][LinuxWSL2Engine ][Info ] Stopping engine [15:54:02.525][EngineStateMachine][Debug ] sending state Docker.ApiServices.StateMachines.FailedToStartState to state change sink [15:54:02.525][EngineStateMachine][Debug ] State Docker.ApiServices.StateMachines.FailedToStartState sent to state change sink [15:54:02.525][EngineStateListener][Debug ] received state Docker.ApiServices.StateMachines.FailedToStartState from LinuxWSL2 [15:54:02.526][EngineStateNotificationRecorder][Debug ] Registered state {"State":"failed to start","Mode":"linux","date":1598259242} [15:54:02.527][SystrayNotifications][Error ] Failed to deploy distro docker-desktop to C:\Users\Chakrit Rakhuang\AppData\Local\Docker\wsl\distro: exit code: -1 stdout: Error: 0xffffffff
stderr: [15:54:02.710][GUI ][Info ] Sending Bugsnag report f267437b-2665-465a-8c9a-be373412b960... [15:54:02.882][GUI ][Info ] Bugsnag report f267437b-2665-465a-8c9a-be373412b960 sent [15:54:02.884][SegmentApi ][Info ] Usage statistic: eventCrash [15:54:02.893][Diagnostics ][Warning] Starting to gather diagnostics as User : 'C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe' gather. [15:54:03.010][Engines ][Error ] Start failed with Failed to deploy distro docker-desktop to C:\Users\Chakrit Rakhuang\AppData\Local\Docker\wsl\distro: exit code: -1 stdout: Error: 0xffffffff
stderr:
at Docker.Core.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Core\WslCommand.cs:line 119
at Docker.Engines.WSL2.WSL2Provisioning.
[15:54:26.584][GoBackendProcess ][Info ] external: GET /forwards/list 200 "Go-http-client/1.1" "
[15:54:26.586][GoBackendProcess ][Info ] mutagen sync list --output json
[15:54:26.641][GoBackendProcess ][Info ] mutagen C:\ProgramData\Docker\cli-plugins\docker-mutagen.exe mutagen sync list --output json: null\n
[15:54:26.642][GoBackendProcess ][Info ] external: GET /sync 200 "Go-http-client/1.1" "
[15:57:26.762][Diagnostics ][Info ] Uploading diagnostics 80E9D45E-88E8-42F8-B0A6-C8328A7251BF/20200824085403
[15:58:09.485][Diagnostics ][Info ] Uploaded succesfully diagnostics 80E9D45E-88E8-42F8-B0A6-C8328A7251BF/20200824085403
[15:59:00.567][ErrorReportWindow ][Info ] Open logs
[15:59:00.601][ErrorReportWindow ][Info ] Open logs
80E9D45E-88E8-42F8-B0A6-C8328A7251BF/20200824085403
affect blue screen
I finally got this resolved after following these steps:
(from https://github.com/docker/for-win/issues/7208)
- Uninstall Docker and WSL 2 kernel.
- Go to the Control Panel -> Programs -> Turn Windows features on or off
- Uncheck the following: Containers, Hyper-V, Windows Subsystem for Linux
- Restart the system
- Install Docker without the WSL2 enabled/checked in the first screen
- Go to the Control Panel -> Programs -> Turn Windows features on or off
- Turn on/check the Windows Subsystem for Linux
- Restart the system.
- Do not install the WSL2 Kernel when reinstalling Docker.
I was not able to launch the Ubuntu WSL initially (got the same error messages in the first post), I then ran "wsl --update" and was able to launch the Ubuntu WSL and got Docker started running again.
My system now has wsl kernel 4.19.128 and Build 20201.rs_prerelease.200822-1922, and the default wsl version is now version 2.
Hope this helps. Cheers.
I performed similar steps to @ngd929 and was able to start docker without wsl exiting with code: -1:
- Uninstall Docker and WSL 2 kernel.
- Uncheck Containers, Hyper-V, Windows Subsystem for Linux in Windows features
- Restart the system
- Install Docker Desktop
- Restart System
- Start Docker Desktop
Thanks!
@ngd929 You saved my day! Thanks a lot. However, for me, I had to install the WSL2 update again to get my Docker Desktop start, otherwise it kept on complaining to get it and wouldn't start.
So I believe steps by @ZacharyGonzales-Wellsky has actually worked.
By the way I am running Windows 10 Enterprise version 2004, and Docker Desktop 2.4.0.0
The problem is in WSL as it becomes unresponsive and returns a service error if you try the following command in PowerShell:
wsl -l -v
I believe the process can be simplified a bit more with:
- Uncheck Windows Subsystem for Linux in Windows Features
- Reboot
- Turn the feature back on
- Re-apply the WSL2 update
- Reboot
No need to uninstall/reinstall Docker Desktop.
This got me back up and running with Windows 10 Home (which requires WSL2) and Docker Desktop 2.4.0
I was not able to launch the Ubuntu WSL initially (got the same error messages in the first post), I then ran "wsl --update" and was able to launch the Ubuntu WSL and got Docker started running again.
Followed your steps, but when running "wsl --update", it doesn't seem to be an option, it just outputs the help/usage info. The state I'm in is after running previous nine steps/bullet points, and then upon reboot and starting docker shows the message suggesting to install the kernel update:

I closed out of that dialog, restarted docker, and then all-the-things started working 🤷
There's a note in the 2.4.2 Edge release notes: https://docs.docker.com/docker-for-windows/edge-release-notes/#bug-fixes-and-minor-changes
- Fixed an issue that can intermittently cause the WSL 2 backend to fail to start.
I've just faced the issue on the latest version of Docker but it was resolved once I "Quit Docker Desktop" and launched it again

Appreciated. Thank you for helpful solution here.
There's a note in the 2.4.2 Edge release notes: https://docs.docker.com/docker-for-windows/edge-release-notes/#bug-fixes-and-minor-changes
- Fixed an issue that can intermittently cause the WSL 2 backend to fail to start.
I did not see that problem. Docker autoupdated yesterday and now it is crashing on start 100%. Not sure if the mentioned "fix" is to blame.
There's a note in the 2.4.2 Edge release notes: https://docs.docker.com/docker-for-windows/edge-release-notes/#bug-fixes-and-minor-changes
- Fixed an issue that can intermittently cause the WSL 2 backend to fail to start.
I did not see that problem. Docker autoupdated yesterday and now it is crashing on start 100%. Not sure if the mentioned "fix" is to blame.
Same happened to me, I tried @ZacharyGonzales-Wellsky steps and it works now. I don't know why this happened though.
The problem is in WSL as it becomes unresponsive and returns a service error if you try the following command in PowerShell:
wsl -l -vI believe the process can be simplified a bit more with:
- Uncheck Windows Subsystem for Linux in Windows Features
- Reboot
- Turn the feature back on
- Re-apply the WSL2 update
- Reboot
No need to uninstall/reinstall Docker Desktop.
This got me back up and running with Windows 10 Home (which requires WSL2) and Docker Desktop 2.4.0
Thank you. I followed the steps that you mentioned and it fixed the issue.
I had the same issue and was able to solve it by:
- enabling Intel Virtualization Technology in my BIOS
- allowing NUMA spanning in Hyper-V settings
- reinstalling Docker with WSL-2 option ticked and installing WSL2 Linux kernel update package for x64 machines
The problem is in WSL as it becomes unresponsive and returns a service error if you try the following command in PowerShell:
wsl -l -vI believe the process can be simplified a bit more with:
- Uncheck Windows Subsystem for Linux in Windows Features
- Reboot
- Turn the feature back on
- Re-apply the WSL2 update
- Reboot
No need to uninstall/reinstall Docker Desktop.
This got me back up and running with Windows 10 Home (which requires WSL2) and Docker Desktop 2.4.0
Thank you so much, it really helped me.
FWIW all I had to do was run the following commands in PowerShell and then restart docker and it started to work.
wsl --unregister docker-desktop-data
wsl --shutdown
Unfortunately, I lost all images that were cached locally.
Got this after automatic upgrade to 3.1.0 Tried everything listed, nothing helps
After upgrade to 3.1.0 mine started crashing as well, I had to disable Acrylic DNS Proxy. Now it seems to be ok again, but I lost some features I was using. You can find more info in: https://github.com/microsoft/WSL/issues/4364#issuecomment-520533800
Edited: As said by @yuptogun, if you are using Laravel Valet you can try to stop it.
valet stop. I noted that if you stop valet, start WSL, and after WSL working, start valet again, it works.
To add to the upper comment, this includes the case that you have Laravel Valet running.
Try valet stop if you have one.