-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to deploy distro docker-desktop #8204
Comments
Version: 2.3.0.4 (46911) stderr: stderr: stderr: stderr: |
80E9D45E-88E8-42F8-B0A6-C8328A7251BF/20200824085403 |
affect blue screen |
I finally got this resolved after following these steps: (from #7208)
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:
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: I believe the process can be simplified a bit more with:
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 |
There's a note in the 2.4.2 Edge release notes:
|
Appreciated. Thank you for helpful solution here. |
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. |
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:
|
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.
Unfortunately, I lost all images that were cached locally. |
Got this after automatic upgrade to 3.1.0 |
After upgrade to 3.1.0 mine started crashing as well, I had to disable Acrylic DNS Proxy. Edited: As said by @yuptogun, if you are using Laravel Valet you can try to stop it. |
To add to the upper comment, this includes the case that you have Laravel Valet running. |
I also had this problem after an upgrade to 3.1.0. After trying multiple suggested solutions here, I finally got it working by doing the following.
The installation of a separate Linux distribution might be superfluous, but I kept running into issues with EDIT: In case anyone else is also experiencing that WSL becomes sporadically unresponsive w/ the above mentioned error message, then restarting |
@LanceTrahan - Yours is the ideal solution. Thank you. |
System.InvalidOperationException: |
Like #8204 (comment) above, I had to disable Acrylic DNS then relaunch Docker Desktop and it started fine. |
This solved the problem for me. I'm very glad that I didn't need to uninstall and reinstall WSL. |
but this wont run Linux based containers on windows right? |
Still happening consistently for me, as of a couple of weeks ago after a windows insiders update. Have tried all of the above steps from @alpharameeztech - but still failing with the same error :( |
Also try updating your .wslconfig file: |
please quote the first line out # , in your .wslconfig (c:\users\abc.wslconfig) file: |
Has anyone encountered this issue with a corporate laptop? Our IT team could follow these steps and it works, but the issues comes back regardless the next day. Seems like something is reverting in the WSL2 update. |
None of above work for me. It started to work again. Tested work on Docker Desktop: 3.6 and 4.1.1 |
@Asmedeus998 Thank you! This worked for me when none of the other steps did! |
Tried many times to uninstall and reinstalling docker following each time a different procedure, then @Asmedeus998 pointed solution finally solved my issue. I was using Acrylic DNS that was using port 53. |
For me the |
Thanks man! Really appreciate it |
Execute: wsl -l -v If does not connect follow this: Go to the Control Panel -> Programs -> Turn Windows features on or off Now open Docker Desktop |
Just a note for anyone seeing this while running a split vpn. Disable the split vpn and viola, Docker starts working again. |
After a few hours I found that the problem was the Docker needs at least 1GB to work, I was putting 512MB and it failed. |
I couldn't get this or android subsystem working, until I saw it mentioned here if port 53 is in use it can cause problems for these subsystems; disabled acrylic dns-proxy and problem solved. |
This worked for me, thank you! 🙏 |
This worked for me too thanks |
This was a recurring issue for me and it took me a stupidly long time to realize that NordVPN was causing it. If I disconnect from the VPN, problem's solved. For the future Google searcher. |
i would use |
|
I could fix it. I got the error:
How I fixed it:
Let me know if that works for you as well. |
The two of you combined resolved my encountering of this issue - disabling NordVPN's Split Tunnelling feature works a treat, and I still get to use the VPN. Thank you! |
Hey all (and the future people who run into this issue), I tried the aforementioned solutions on my company's Alienware m15 which supposedly has "virtualization enabled" on my 9th Gen i7 in task manager, but no BIOS options to enable Intel Virtualization technology. I got a VM running a deactivated copy of Win10 Pro in Hyper-V, and tried uninstalling X, enabling Y, rebooting Z after disabling W, No dice. I tried many orderings of numerous solutions above. Still nothing. I was beginning to think hope was lost and It's my machine's fault or some IT policy. I even tried I then stumbled upon this article https://blog.davidchristiansen.com/2016/11/run-hyper-v-docker-on-virtual-machine/ and I tried this command Then I scrolled further on this page and saw that @NikolaosWakem wrote the solution as well:
For me, WindowsFeatures such as Containers, Hyper-V and its subsidiaries, Virtual Machine Platform, Windows Subsystem for Linux were all enabled and WSL 2 Kernel update was also installed before I ran the above command on my host's admin account in CmdPrompt (Admin). Hope this helps someone avoid days worth of troubleshooting. Cheers, Daniel |
Guys that steps worked for me:
I hope you find this helpful! |
None of these instructions worked for me. Here is what did the trick for my Win10 Home:
|
Worked only doing step 4, thank you |
There hasn't been any activity on this issue for a long time. Prevent issues from auto-closing with a /lifecycle stale |
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.d__17.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 169
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.Engines.WSL2.WSL2Provisioning.d__8.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.Engines.WSL2.LinuxWSL2Engine.d__24.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\LinuxWSL2Engine.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.ApiServices.StateMachines.TaskExtensions.d__0.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\TaskExtensions.cs:line 29
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.ApiServices.StateMachines.StartTransition.d__5.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 67
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Docker.ApiServices.StateMachines.StartTransition.d__5.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 92
The text was updated successfully, but these errors were encountered: