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

Docker does not start on Windows start (does after a Restart)

Open EdSF opened this issue 5 years ago • 4 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: 03A5B091-BB4B-4108-AB63-0C26AECF731C/20210504140701

Actual behavior

Behavior described here occurs if you have Docker set to run after login (automatically)

Docker desktop seems to be running (icon on task bar). However, no containers are started. No errors are reported. The only indication that something is wrong:

  • the docker icon in Windows task bar does not show the ship/whale "sails"/blows (?) image

  • if you have Windows Notifications set for Docker (I do), it will not pop a notification as it normally does (not verbatim:

    "docker wsl2...is starting"

  • On the Troubleshoot section of Docker Desktop, the Restart Docker Desktop button is disabled (you can't restart )
    image

  • The Settings section is stuck on a spinning wheel
    image

Workarounds:

  1. Start Docker Desktop manually (not when you log in) by unchecking the option in settings and just start Docker Desktop like any other app image

  2. However, If it's already started , and you can't do the above because the settings tab is "stuck" (see above spinning wheel), you can try:

    • Restart Windows - this usually "fixes" the issue (no other action needed to get everything going as it normally should)
    • If restarting doesn't work, or you don't want to do a Windows restart, stop and restart Docker manually via Windows Task Manager
      • stop docker.exe and Docker.Service
        image
      • the above are the only processes I can personally see when Docker fails - there are quite a few more when it runs successfully (eg. Docker Desktop Backend, etc)
      • Start Docker Desktop manually (via Programs, Cortana, Windows search, etc). Go through the prompts (elevated privileges, start Docker Service, etc)

Expected behavior

Docker should normally startup with all containers running

Information

  • Windows Version:

    Edition	Windows 10 Pro
    Version 20H2
    Installed on 3/‎20/‎2021
    OS build 19042.928
    Experience Windows Feature Experience Pack 120.2212.551.0
    
  • Docker Desktop Version: ~~3.3.1 (63152)~~ 3.3.3 (64133)

  • Docker Engine Version: ~~v20.10.5~~ v20.10.6

  • WSL2 or Hyper-V backend? WSL2

  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No

Steps to reproduce the behavior

  1. Start Windows 10 (cold start, not on any "standby" mode)
  2. There is no "step 2" (if you have Docker running automatically after login), the issue already manifests at this point. A Windows Restart will "fix" (although this could be a couple of restarts) or manually stop/start via Windows Task Manager

EdSF avatar May 04 '21 14:05 EdSF

Same behavior:

  • Windows Version:
Edition Window 10 Enterprise
Version 20H2
Installed on 3/4/2021
OS build 19042.928
Experience Windows Feature Experience Pack 120.2212.551.0
  • Docker Engine version 20.10.6, build 370c289
  • Docker Desktop version 3.3.2 (63878)
  • WSL2 or Hyper-V backend? WSL2
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No

My workaround:

  • Stop all tasks related to "Docker" in task manager
  • Start "Docker Desktop" app manually
  • Commit message to start "Docker Desktop Service"

I suppose, the "Docker Desktop Service" hangs on startup and as a result Docker Desktop App is not able to work properly.

Update 5/6/2021: I downgraded to Docker Desktop version 3.2.2 and everything works fine. But that's not a solution, because the autoupdate immediately reinstalls version 3.3.1 on next start. :(

So at the moment Docker Desktop is completely unusable! :(

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

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 31 '21 01:08 docker-robott

I am seeing this issue as well. Extremely frustrating.

kr99 avatar Sep 08 '21 16:09 kr99

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 Nov 07 '21 03:11 docker-robott