Open ChakritRakuang opened 4 years ago
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.
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)
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:
wsl -l -v
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
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 -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
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:
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
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.
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.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
c. Enable Virtual Machine w/ dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
d. Rebootwsl -help
from Powershell) wsl --set-default-version 2
from Powershell) The installation of a separate Linux distribution might be superfluous, but I kept running into issues with wsl
without it. Specially starting Docker Desktop wo/ the presence of a Linux distribution seems to interfere with WSL leading it to freeze and just return this message: The service cannot be started, either because it is disabled or because if has no enabled devices associated with it.
.
EDIT: In case anyone else is also experiencing that WSL becomes sporadically unresponsive w/ the above mentioned error message, then restarting LxssManager
is a possible solution that avoids the need to disable/enable features. See suggested solutions as posted in https://github.com/microsoft/WSL/issues/5836 and https://github.com/Microsoft/WSL/issues/3386. Running sc config LxssManager start=auto
from the command line in admin-mode worked for me.
@LanceTrahan - Yours is the ideal solution. Thank you.
Like @Aeilert , I too had to download and install the Linux kernel update package. The non-Windows Insider section of this reference helped.
System.InvalidOperationException: Failed to deploy distro docker-desktop to C:\Users\peropero\AppData\Local\Docker\wsl\distro: exit code: -1 stdout: ��:
Like https://github.com/docker/for-win/issues/8204#issuecomment-771866210 above, I had to disable Acrylic DNS then relaunch Docker Desktop and it started fine.
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.
This solved the problem for me. I'm very glad that I didn't need to uninstall and reinstall WSL.
I finally got this resolved after following these steps:
(from #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.
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 :(
Acrylic DNS was the issue for me too. Uninstalled it, purged the windows containers, restarted the docker engine, problem solved.
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 :(
@Imaclean74 I tried installing even the latest docker desktop which is released yesterday 3.3.3 but I am still getting the same error.
aah - as of today it started working. Updated to the latest Win10 insiders build and now docker desktop is coming up ok. And I'm able to install and run linux distros
I managed to resolve this issue by changing the user that runs the service to my account which is a system admin. Looks like this is just a permissions issue. There's probably a better way to resolve this permanently, but in the short term this will do for me.
1A51AD83-539E-4994-8C0E-0C4FA4908B42/20210612214351
I face this issue every time I update Docker Desktop. Please fix this.
I tried all the above mentioned ways, but no luck. Finally, I switched from linux to windows containers now docker starts up fine without any issues.
Yes it will work when you switch to windows to linux but I have to use the linux containers only.
On Thu, 24 Jun 2021 at 21:14, Saleem @.***> wrote:
I tried all the above mentioned ways, but no luck. Finally, I switched from linux to windows containers now docker starts up fine without any issues.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/8204#issuecomment-867770647, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIWHSFGEVKOQ34OSDXMYJG3TUNKYFANCNFSM4QJIPB5Q .
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.
This solved my problem. Windows restart was required.
@namatoj big thanks.
Had this error.
Nothing suggested in here worked until I deleted the %USERPROFILE%\.wslconfig
file.
I finally got this resolved after following these steps:
(from #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.
Guys this worked for me. 👍
above steps didn't work for me... I'm giving up...
I don't think this is a Docker specific issue.
I am able to run WSL (distros) in version 1 but can't get them running on WSL2 or convert them.
I kinda give up too. Currently using Hyper-V and Containers method to run Docker
I tried all the suggestions and some worked temporarily but failed.
What is working for me so far is this:
1- open cmd running as Administrator 2- exec sc config LxssManager start=auto 3- restart docker-desktop
I did Reset to factory defaults
in many times but it didn't fix this.
But this issue on my env is gone after executing Clean / Purge data
.
Had this error.
Nothing suggested in here worked until I deleted the
%USERPROFILE%\.wslconfig
file.
Same for me, I had this problem about one and a half month ago, came here to write about it but too late =) Cause I spent too much time trying to solve it
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
Saved my day man! Thank you very much
I selected the Docker autoupdate from 3.5.0 (I think) to 3.5.2 on Win 11. The install failed. Uninstalling, rebooting and installing 3.5.2 still failed Uninstalled, rebooted and installed 3.5.0 still failed
renamed .wslconfig to .xwslconfig in users\username after rsuggestion by XSonic uninstall, reboot and install 3.5.0 succeeded
the wslconfig I had set the ram to 8GB as a max, and added 2 processors
type .xwslconfig [wsl2] kernel=C:\temp\myCustomKernel memory=8GB # Limits VM memory in WSL 2 to 8 GB processors=2 # Makes the WSL 2 VM use two virtual processors
I tried all the suggestions and some worked temporarily but failed.
What is working for me so far is this:
1- open cmd running as Administrator 2- exec sc config LxssManager start=auto 3- restart docker-desktop
Thanks microsoft/WSL#3386
Thanks this worked for me.
I'm using docker with windows 11 and I installed the ubuntu distro also. After every restart of the PC, not only Docker but also Ubuntu don't work. I also recognized that the LxssManager service is stopped and also disabled in services. It cannot be enabled from the GUI. Because it pops up the "Access denied" message. So, I used this solution to enable LxssManager, and then the popup from Kaspersky opened (I'm sorry I forgot to take a screenshot of the popup). The popup asked to fix Linux running on windows issue. I chose the "Not now" option. I think my problem is the Kaspersky because after enabling LxssManager everything worked. If you have Kaspersky antivirus I think this will work. I don't know about other antiviruses.
After I rename .wslconfig file to .wslconfig_bak everything is solved.
Had this error.
Nothing suggested in here worked until I deleted the
%USERPROFILE%\.wslconfig
file.
Hello, I solved it by running this application on windows 10 https://www.microsoft.com/en-us/software-download/windows10
Nothing in here even worked for me. I finally got it to start by:
.wslconfig
in my user directorywsl --shutdown
I placed the .wslconfig
file back in my home directory, and it wouldn't start again. I took .wslconfig
away again, and it started successfully again. I can say that the culprit here was definitely .wslconfig
.
For future reference, this is my wslconfig that caused Docker not to start.
[wsl2]
memory=512MB
processors=2
Perhaps Docker should look into this issue here. When I changed the config to 1GB
, I didn't have Docker starting issues anymore
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.d17.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.d24.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.d5.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