for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker Daemon Consistently Fails to Start After Reboot

Open ShaneF67 opened this issue 5 years ago • 10 comments

  • [x] I have tried with the latest version of Docker Desktop
  • [x] I have tried disabling enabled experimental features
  • [x] I have uploaded Diagnostics
  • Diagnostics ID: EADA4CF6-A8F1-4AF7-AD63-93F03F5D7834/20210510221914

Actual behavior

Docker does not start correctly (it appears the daemon does not start). The Docker application will start and the icon is in the task bar, but only the whale is visible. The service never starts. The settings page is inaccessible (it is stuck on the spinner).

Expected behavior

Docker starts normally with Windows.

Information

  • Windows Version: Windows 10 Enterprise Version 1909 (OS Build 18363.1500)
  • Docker Desktop Version: Tried installing 3.3.1, 3.3.2 and 3.3.3 the issue is on all versions
  • WSL2 or Hyper-V backend? Currently WSL2 but I tried both
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No
  • I have scoured the past issues and forums but nothing suggested works.
  • I do not have any experimental features installed. I re-installed three different versions of Docker today so I am on factory settings.
  • I tried removing all files related to Docker (including AppData) before re-installing.
  • This issue only appeared in the past two weeks, Docker was running fine for two years before that.
  • If I Clear/Purge data, Reset to Factory Defaults or run this in powershell '& 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon', Docker will restart successfully and work. But the next time I reboot my computer the issue returns. This is not an option for me though as it deletes all of my images and containers.

Taskbar Icon

image

Settings Page

image

Log file

log.txt

Steps to reproduce the behavior

  1. Restart computer and Docker does not start successfully.

ShaneF67 avatar May 10 '21 23:05 ShaneF67

I am having the same problem, also on Windows, although sometimes it is only after the second reboot, I have been forced to reset to factory defaults at least 4 times since the start of May. I am also running WSL2 with Docker for Windows.

marcrobertscamao avatar May 11 '21 06:05 marcrobertscamao

I think, this is the same issue as mentioned here: https://github.com/docker/for-win/issues/11121#issuecomment-832514369

MichaelWagner-blue-zone avatar May 11 '21 08:05 MichaelWagner-blue-zone

I think it is also a duplicate of #11162 and #11167 but this one was a little clearer in the description

marcrobertscamao avatar May 11 '21 08:05 marcrobertscamao

Might be the same issue: https://github.com/docker/for-win/issues/11174

MichaelWagner-blue-zone avatar May 11 '21 15:05 MichaelWagner-blue-zone

I managed to work around this issue with a combination of comments from this ticket https://github.com/docker/for-win/issues/10958

Comments: https://github.com/docker/for-win/issues/10958#issuecomment-831306519 https://github.com/docker/for-win/issues/10958#issuecomment-833259325

Summary:

  1. Download the installer (3.3.2) and run it manually (as opposed to using chocolatey)
  2. When prompted un-select "install wsl components" and "create link on desktop"
  3. Then, start docker desktop and everything runs as it used to 🤷🏻‍♀️

and this: I found what was the problem for my docker desktop start. By default docker wanted to sign in to my dockerhub account and for some reason related to my proxy (I sometimes use my company vpn sometimes not) it failed . In dashboard I signed out from docker hub and now docker starts

ShaneF67 avatar May 26 '21 16:05 ShaneF67

Solved! Thanks to @ShaneF67 I just signed out and my docker started immediately. So this was the only problem.

belucha avatar May 27 '21 06:05 belucha

The fix that @belucha mentioned works, signing out of your docker account on docker desktop and then signing back in restarts the daemon. In future they should probably add restart of docker on starting up docker desktop; instead of leaving it running in the background with daemon not started.

shivaanmotilal avatar May 27 '21 10:05 shivaanmotilal

I can confirm that just "sign out" resolved the issue.

Navodar22 avatar May 28 '21 08:05 Navodar22

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

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. /lifecycle stale

docker-robott avatar Aug 26 '21 01:08 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

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. /lifecycle locked

docker-robott avatar Oct 25 '21 03:10 docker-robott