docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 288 forks source link

Docker Engine endlessly restarting after window minimized to tray and maximized again #13132

Open dw-0 opened 1 year ago

dw-0 commented 1 year ago

Actual behavior

Whenever i close the window and let it minimize into the tray, and then try to maximize it again, i get an endless loop of the docker engine trying to start. It looks like a UI bug, im not quite sure. But what i have to do then is, to restart Docker Desktip via right clicking the tray icon and selecting "Restart". Here is a gif, showing the issue: 22-12-18_18-29-17_explorer

This does not happen when i simply minimize the window to the taskbar with clicking -. Only if i close it by clicking the x and have it still running in the tray.

Expected behavior

Maximizing the window by clicking the tray icon without any issues and not being forced to restart the program for that.

Information

So i upgraded from version 4.4.4 to 4.15.0 today, to give a more recent version a shot again. I downgraded to v4.4.4 several times in the past because i always encountered some issues with newer versions than v4.4.4 on my system. v4.4.4 is the last, most stable version of Docker Desktop for me right now.

Anyways, the explained issue is reproducible 100% of the time for me. And yes, it is a new problem since i upgraded to v.4.15.0 today. As a backend i use WSL2 on a physical Windows 10 Pro 22H2 machine.

Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check

[2022-12-18T18:07:43.795487700Z][com.docker.diagnose.exe][I] set path configuration to OnHost
Starting diagnostics

[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[PASS] DD0002: does the bootloader have virtualization enabled?
[SKIP] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled?
[PASS] DD0021: is the WSL 2 Windows Feature enabled?
[PASS] DD0024: is WSL installed?
[PASS] DD0025: are WSL distros installed?
[PASS] DD0026: is the WSL LxssManager service running?
[PASS] DD0029: is the WSL 2 Linux filesystem corrupt?
[PASS] DD0035: is the VM time synchronized?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0031: does the Docker API work?
[PASS] DD0013: is the $PATH ok?
[PASS] DD0003: is the Docker CLI working?
[PASS] DD0005: is the user in the docker-users group?
[PASS] DD0014: are the backend processes running?
[PASS] DD0007: is the backend responding?
[PASS] DD0008: is the native API responding?
[PASS] DD0009: is the vpnkit API responding?
[PASS] DD0010: is the Docker API proxy responding?
[PASS] DD0006: is the Docker Desktop Service responding?
[PASS] DD0012: is the VM networking working?
[SKIP] DD0030: is the image access management authorized?
[PASS] DD0033: does the host have Internet access?
[PASS] DD0002: does the bootloader have virtualization enabled?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled?
[PASS] DD0021: is the WSL 2 Windows Feature enabled?
[PASS] DD0024: is WSL installed?
[PASS] DD0025: are WSL distros installed?
[PASS] DD0026: is the WSL LxssManager service running?
[PASS] DD0029: is the WSL 2 Linux filesystem corrupt?
[PASS] DD0035: is the VM time synchronized?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0031: does the Docker API work?
[PASS] DD0032: do Docker networks overlap with host IPs?
No fatal errors detected.

Steps to reproduce the behavior

  1. start Docker Desktop and see it running correctly
  2. close window by clicking the x in the top right corner
  3. try and maximize the window again by clicking on the tray icon
  4. see "Docker Dekstop starting..." endlessly in the window
docker-robott commented 1 year ago

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

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

/lifecycle stale

TTCashier commented 1 year ago

I'm having this exact same issue on Docker Desktop 4.18.0 (104112). Using physical Win 11 Pro 22H2 machine. Have you found a solution? Using Hyper-V backend.

TTCashier commented 1 year ago

/lifecycle frozen

rizistt commented 1 year ago

I started seeing the same issue after the recent update. I am on version 4.18.0.