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
Docker Startup problems Switching Docker to use WSL2 containers #6822
Comments
So - tried uninstalling and re-installing Docker Desktop - different error this time.
|
3rd time luck - docker started this time and I'm able to run containers. |
Same issue after update to build 2004 (19628). Tried to reinstall stable/edge version of docker multiple times with same result. Steps already tried:
Only if I deactivate "Use the WSL 2 based engine", the docker does not crash. Error message: `WSL distro stopped while waiting for Lifecycle server.
|
@jcoconnor sorry about those crashes.
@rfc1985 can you send me a diagnostic ? for some reason, some necessary files necessary for WSL 2 are not reachable at the expected location from the wsl distro. |
see Error: mounting wslCLIDest: stat /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso: no such file or directory. |
Hi @simonferquel The Docker is installed in "C:\Program Files\Docker" It seems to be that the docker mount is failing. Can I configure the docker mount somewhere? |
Thanks for the update - as I indicated - I was able to get it working after a few attempts and its been working fine ever since. But good to see that you are sorting a patch on it as well 👍 |
@rfc1985 can you show me the output of |
|
Ok, from this output, it seems that wsl2 failed to mount your Windows drives (you can see the first line saying it). |
Nothing special. |
I have a fix for the mount issue inside my Ubuntu-18.04 WSL2 by mount the drives manually after boot up. |
@benhillis any clue about why Windows files fail to mount ? |
@simonferquel - yes, we have some fixes inbound to Insider builds. 2004 should not be affected. |
I formatted the computer and the problem persists. |
I just updated to windows 2004 and hit this error. I installed the wsl2 kernel and now docker doesn't start.
|
@benhillis will the mount fix be listed in next insider preview releases? |
Please use Diagnostics ID: 71C92EEB-7D59-41A6-8E87-8B9B0108F0A8/20200529112950 if useful |
In my case the problem was caused because the HyperV VM "DockerDesktopVM" was running. After shutting down the Docker Desktop VM works properly again through WSL2. |
Turning off and deleting the "DockerDesktopVM" in hyper-V did the trick. Thanks @supervas |
Shutdown |
I was getting the same error -- Error: mounting wslCLIDest: I restarted Docker for Windows. This is what fixed Docker for me -- I stoppped and restarted the Hyper-V Manager service. |
thank you man, I shutdown and delete DockerDesktopVM from Hyper-V Manager , and restart Docker, everything is ok. |
I just experienced the same error right after Windows startup. After opening a WSL2 Ubuntu terminal, starting Docker Desktop worked. Just in case somebody might find this helpful. |
I simplely resolve this problem by following steps:
Good luck. |
Following @IITII 's steps fixed the issue for me. |
I "ejected" the virtual dvd created during the docker installation and then re-ran startup and it ran fine. |
I just ran into this issue and the options above did not solve my issue. Hope this helps anyone. |
Greetings. |
i just reinstalled the package to fix this issue after the upgrade. |
For all the googlers who bumped into the same issue with a WSL2/Docker stack, try to follow the steps that mentioned by @IITII above. |
Issues go stale after 90 days of inactivity. Prevent issues from auto-closing with an 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. |
Closed issues are locked after 30 days of inactivity. 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. |
Expected behavior
Expect Docker to start.
Actual behavior
ts crashing each time I attempt to start it after selecting the new option to use WSL2 containers on Windows 10 (Build 2004 - Insider build).
Information
Startup Error produced by Docker
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: