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 is starting..." forever #5261
Comments
How long did you wait? There is a 10 minute timeout on the boot sequence which will trigger diagnostics and an error report. |
I have waited 24+ hours and it is still stuck in starting. What other info is needed and how can I get it given that diagnostics is also not responding properly. |
Hello guys, Any update? seeyou |
I have also encountered this issue. The 10 minute time out doesn't seem to work. I even tried switching from Linux containers to Windows containers, and it just hangs forever. Windows Version: 10.0.19041.84 (using WSL2 features) In my case, it was working fine yesterday, but the battery on my laptop died abruptly, and turned off my system. I turned it back on the next day, and Docker started doing the hang forever on startup. The rest of the system looks fine. The Docker daemon is not running on either windows or linux. Any thing I can look at or try? EDIT: I just noticed that in the Docker settings window, where it would show the status of the Docker engine, it says updating (not sure if that is the status that is being updated or if Docker itself is being updated). |
I have also encountered this issue. I was already using WSL2 without issue, and decided to upgrade to Docker Desktop Edge to utilize the new WSL2 integration. I installed Docker Desktop Edge without issue and started using Linux containers right away in the WSL2 environment. The trouble is with a machine restart. Once the machine is restarted, docker will hang on startup forever, and never hit the 10 minute timeout. The only resolution I have found is to completely uninstall Docker Desktop, remove all data directories (AppData, ProgramData, etc) and reinstall. I am also using Windows containers (supporting legacy systems), and I am unable to switch between them once this issue starts to occur. I have also tried another suggest workaround where I would call the following commands from an elevated prompt, but it had no effect for me.
So for now, I have to reinstall docker completely with each restart, and then download all my images again (very slow for my Windows containers). Windows Version: 10.0.19041.84 Something I noticed in the logs, the system appears to be trying to communicate with a server located at localhost:80, I am running a local IIS server already listening on port 80 and 443. Could this be part of the issue? |
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. |
I just installed last stable version of docker-desktop and ran into the same problem. Got here trying to find a solution |
I was facing the same issue. In my case, my firewall was blocking connections made by the binaries:
After allowing these applications, I was able to start. |
I just installed the last update and allowed "vpnkit" and "docker.proxy" in the firewall. It's working!! "docker.service" doesn't exists in my system |
I experienced the same issue, in my case the following command
was hanging in my default WSL container (Ubuntu-20.04), preventing docker desktop from reporting as started. I opened up a separate wsl instance, manually created the directory and killed the hung process, then docker desktop reported docker was started and everything seems to work normally. It seems to happen on restart as well, but killing the process again works. |
Stuck on this issue as well. @wemrysi what process are you killing? Can you provide a step-by-step? |
@lordvlad I mentioned it in the previous post, in my case the process was
More generally, it looks like Docker Desktop executes some commands using the default login shell on the WSL2 instance. My zsh configuration runs a utility that requires user input the first time it is run. If Docker Desktop is the first access to the WSL2 instance, it gets stuck waiting for input due to my aforementioned configuration. I've managed to work around this issue by keeping TL;DR if you have anything in your login shell configuration that requires user input to proceed, it may be preventing Docker Desktop from starting. I couldn't find much documentation about what commands, etc. are run by Docker Desktop in the default WSL2 instance. If it isn't doing so already, it might be useful if Docker Desktop defined a unique environment variable that is set when running commands (similar to, say, CI platforms), so that users could condition on it to avoid this problem. |
@wemrysi Thanks for the lengthy explanation. As I mentioned before, I even removed all other WSL distros to no avail. In the meantime, I had two more tries at cleaning up:
and installing the stable version. In the end it worked. Not sure which step exactly fixed it, but now docker works as its supposed to. |
Having this occur as well. Docker is actually running (I can use it from the command line), but in the Dashboard app it says "Starting" forever, and does not display running containers. |
Had the same issue as @valfrid-ly and the same behavior as the post from HyperCharlie '#5261 (comment)' . After allowing the below binaries in the Windows Defender Firewall as a Inbound Rule, Docker started up successfully.
|
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. |
https://hub.docker.com/editions/community/docker-ce-desktop-windows -->
Expected behavior
Docker Desktop starts successfully
Actual behavior
Docker Desktop get stuck in starting forever.
Information
Please, help us understand the problem. For instance:
Steps to reproduce the behavior
Reboot the machine. It happens almost every time. All of the containers do start and are accessible. The Docker API is also functional.
I have uninstalled and reinstalled Docker. This seems to work for a few days and then the problem reappears. Occasionally it will start successfully (10% of the time). If I do a reset, it will work for a while and then stop again.
log.zip
The text was updated successfully, but these errors were encountered: