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 Desktop cannot start - An unexpected error occurred #13273
Comments
Experiencing almost the same, Docker Desktop 4.17.0 was just installed fresh to Win10, but with error:
Uninstall, reboot and reinstall didn't fix this. |
I am experiencing the same issue, which started this week. Docker Desktop will not start. Errors include "provisioning docker WSL distros: deploying "docker-desktop": importing WSL distro "The parameter is incorrect.\r\r\n" and "* checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found." I have attempted removal of Hyper-V, WSL2, and all Hypervisor from windows, and re-install as Administrator. No luck yet. I managed to get Docker Desktop running temporarily, after installing without WSL2 (so Docker created the setup). But after restart, while connected to different network, the error recurs. |
Hello, could you please paste the output of |
Hi David, This is result: PS C:\Windows\system32> wsl.exe -l -v Use 'wsl.exe --list --online' to list available distributions Distributions can also be installed by visiting the Microsoft Store: |
I have so far only been able to restart Docker Desktop when I do the following: Access “Turn Windows Features On/Off” and set
My WSL Status now shows: I will keep exploring to find what causes or affects this, but I have restarted once, and Docker Desktop loaded successfully again. I'll post more info if it breaks again... |
I’ve had the problem on windows and the crux of this problem is why when selecting WSL doesn’t windows also include the virtual machine as a pre-requisite? It should. Because both are required! Unfortunately, the windows install allows you to install WSL without the virtual machine option. |
To fix the "provisioning docker WSL distros: setting main distro version" error, try disabling the legacy console. You can do this by following these steps: a. Open the "Command Prompt" app as an administrator. After disabling the legacy console, try opening the Docker Desktop client again and see if the error is resolved. To fix the "checking if isocache exists" error, try the following: a. Open the "Command Prompt" app as an administrator. If these steps do not resolve the issue, you may need to reinstall Docker Desktop. |
Hello, I also encountered the same problem, how did I solve it in the end? |
Ok, my new settings seem stable, and Docker Desktop continues to run in Windows 10 21H2: Windows Subsystem for Linux ON (updated to WSL2) Hyper-V OFF I don't know what will happen if I turn Hyper-V on again |
Windows PowerShell Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows PS C:\Users\me> & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check [PASS] DD0027: is there available disk space on the host? [FAIL] DD0004: is the Docker engine running? Get "http://ipc/docker": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified. [PASS] DD0015: are the binary symlinks installed? [PASS] DD0007: is the backend responding? [PASS] DD0006: is the Docker Desktop Service responding? Please note the following 4 warnings: 1 : The check: are the LinuxKit services running? The Docker engine runs inside a Linux VM as a service. Therefore the services must have started. 2 : The check: is the Docker engine running? The Docker engine manages all containers and images on the host. Check the dockerd.log to see why it failed to start. 3 : The check: does the Docker API work? If the Docker API is not available from the host then Docker Desktop will not work correctly. 4 : The check: do Docker networks overlap with host IPs? If the subnet used by a Docker network overlaps with an IP used by the host, then containers Try configuring the IP address range used by networks: in your docker-compose.yml. Please investigate the following 2 issues: 1 : The test: are the LinuxKit services running? The Docker engine runs inside a Linux VM as a service. Therefore the services must have started. 2 : The test: are the backend processes running? Not all of the backend processes are running. Steps to reproduce the error::
By the way I checked and am not using the legacy console |
I also disabled hyper v and windows hypervisor platform and rebooted and it still won't start. Getting this error System.Exception: at Docker.Engines.WSL2.LinuxWSL2Engine.d__11.MoveNext() in C:\workspaces\4.17.x\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\LinuxWSL2Engine.cs:line 108 here's the result of the dianose.exe file now that hyperv and windows hypervisor are turned off
[PASS] DD0027: is there available disk space on the host? [FAIL] DD0004: is the Docker engine running? Get "http://ipc/docker": open \.\pipe\dockerLifecycleServer: The system cannot find the file specified. [PASS] DD0015: are the binary symlinks installed? [PASS] DD0007: is the backend responding? [PASS] DD0006: is the Docker Desktop Service responding? Please note the following 4 warnings: 1 : The check: are the LinuxKit services running? The Docker engine runs inside a Linux VM as a service. Therefore the services must have started. 2 : The check: is the Docker engine running? The Docker engine manages all containers and images on the host. Check the dockerd.log to see why it failed to start. 3 : The check: does the Docker API work? If the Docker API is not available from the host then Docker Desktop will not work correctly. 4 : The check: do Docker networks overlap with host IPs? If the subnet used by a Docker network overlaps with an IP used by the host, then containers Try configuring the IP address range used by networks: in your docker-compose.yml. Please investigate the following 2 issues: 1 : The test: are the LinuxKit services running? The Docker engine runs inside a Linux VM as a service. Therefore the services must have started. 2 : The test: are the backend processes running? Not all of the backend processes are running. |
I solved this error, but the method is more crude, I upgraded my computer in situ, that is, download the upgrade tool WIN10 from the official website to WIN10, my data and software are retained, only the system is reset, and the docker error is also solved |
Most of these issues mostly occur when experimental features are turned on. Be sure to untick in settings to have the most stable run. Another part to check is WSL especially if you migrated from Win 10 to Win 11. |
There issue with one of the WSL installed on your machine. So please check if is there any wrong with WSL. wsl -l #list wsl installed |
Same issue, de-installed Docker Desktop and tried to install old version (4.17.0), but installation failed:
|
有一个解决方法就是:重置Windows的网络设置,我尝试了之后确实可以打开docker desktop了,此前改动网络设置是因为我使用了VMware虚拟机
|
I use the following two steps to be effective
hope which can help you |
For those looking for a fix for this. Make sure your Then delete the |
If you're still struggling to get this done and on Windows chances are you've not enabled updating this.
It should be working now. The reason it fails seems to be because windows doesn't enable updating optional feature by default. |
I am not sure if this solves the issue for everyone. Somehow I tried this and it worked. I ran this command in windows cli
It showed Ubuntu-18.04 as my default Linux distribution. I just changed it to docker-desktop using the following command
After that I have opened the Docker desktop again and it worked. |
|
@carlonio @vivek-meka @zeenotheinventor You're suggestion are not solving my installation error. @Giant-Jelly I think your comment is the solution, but at my win10 installation the hyper-v platform is corrupted and re-install is failing. My laptop is going to be re-imaged/re-installed today, not only for this installation error, so I'm good. |
Was just having this issue, and after restarting and getting nowhere, I tried running wsl --update. Then I opened docker again and everything works. |
Guys, I spent 40 minutes trying to solve this issue... What worked for me: Try the other solutions such as enabling Hyper-V, reinstalling docker, etc... but if nothing works, do as I did: 1 - Unregister all folders with name docker inside WSL (wsl --unregister (name containing docker, like docker-desktop) |
If you're doing it in a VM then you should enable hardware virtualization in the VM (aka nested virtualization).i was installing and running the docker desktop in a windows vm and got this error but enabling hardware virtualization solved this error for me. |
only thing that worked for me was re installing wsl. it has happened today for a second time i really would love to know how to stop it happening i lose over half a days work setting up new environments when it happens |
netsh winsock reset |
netsh winsock reset |
Win10 LTSC 2021版本暗转 Docker Desktop 4.20 打开报错 An unexpected error occurred. 试过不行的方法: 可行的方法: |
Still broken on windows 11 - When will this bug be fixed? |
In case you use Atlas OS |
Hit this issue while setting up Docker Desktop on a brand spanking new Windows 11 installation. Amazing QA this software has. Falling back to Hyper-V for now. |
This happened to me, even with docker and wsl working. I tried forcing some WSL functions to see if it wasn't a bug: 4ª Control Panel: Reboot system and return to working. |
thanks you ,is working. |
Thank you bro, it worked for me. But why ??? |
Hi all, Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux #Next you have to find out your Installed Linux Distribution, so that you can set that distribution to work as WSL version 2. #convert your current Linux Distribution to WSL version 2 #Finally, if you want to use your WSL2 as the default version then execute the command below. |
netsh winsock reset Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux It doesn't work for me |
if you run VM with Windows 10 and Docker from Hyper-V Server you need to activate Nested Virtualization PowerShell: Docker help: |
Hi, don't know if this thread is still active but I encountered the same issue with "ensure virtualization is enabled". After many different approaches I tried what was advertised in https://learn.microsoft.com/en-us/windows/wsl/troubleshooting#error-0x80370102-the-virtual-machine-could-not-be-started-because-a-required-feature-is-not-installed:
Thought I would share as this issue drove me insane as everything seemed to be enabled... |
make sure virtualisation is enabled in the bios, this solved the problem for me |
This might help in some cases, that feature was enabled in my case though |
for those who reset their network by running the command Here are a few things you could check:
I followed the second solution, and it worked for me. |
docker desktop version 4.25 error, demoted to 4.21.0 can be opened |
Thanks for the suggestions. I did most of the previous troubleshooting suggestions. from turn windows features on and off, to wsl unregister and install. then install a specific linux distribution, after which i had another error message on my command prompt that suggested i turn on virtualization on my BIOS and docker desktop finally worked for me. |
Thanks for you, the 4.21.0 version works fine on my computer. |
in shortfor my case: run Docker with admin right detailsrun Docker with admin right
upgrade wsl to v2
environment
|
I had to enable CPU Virtualization in my BIOS |
Oh,who can help me......i try all method i have known,no one save me?Please,who can help me |
Did you try this? """ execute "bcdedit /enum | findstr -i hypervisorlaunchtype" (administator cmd console) |
thanks,my bro.i tried just now,result is hypervisorlaunchtype Auto.So,it may not the key in my problem. |
Hey,everone,i solove my problm by using docker desktop 4.20.0. Maybe the old version is more suitable for most computers. |
Thanks! |
Yes, older versions run fine on Windows LTSC 2021 |
An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.
Please try shutting WSL down (wsl --shutdown) and/or rebooting your computer. If not sufficient, WSL may need to be reinstalled fully. As a last resort, try to uninstall/reinstall Docker Desktop. If the issue persists please collect diagnostics and submit an issue (https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal).
Error details:
2 errors occurred:
* provisioning docker WSL distros: deploying "docker-desktop": importing WSL distro "The system cannot find the path specified.\r\r\n" output="docker-desktop": running WSL command "wsl.exe --import docker-desktop C:\Users\glykos\AppData\Local\Docker\wsl\distro C:\Program Files\Docker\Docker\resources\wsl\wsl-bootstrap.tar --version 2" failed with output "The system cannot find the path specified.\r\r\n": exit status 0xffffffff
* checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
Actual behavior
Expected behavior
Information
Output of
& "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: