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

Docker Desktop 4.5.1 missing tray icon

Open ghost opened this issue 4 years ago • 46 comments

Actual behavior

Tray icon not present.

Expected behavior

Tray icon present.

Information

Reproducible:

  • Upgrade from 4.5.0 to 4.5.1 and tray icon is gone.
  • Complete uninstall and fresh install of 4.5.1 and tray icon did not appear.
  • Complete uninstall and fresh install of 4.4.4, tray icon is present. Upgrade to 4.5.1 and tray icon is gone.

In each case I can access Docker Desktop from the start menu shortcut, but it appears to be spawning a new instance every time I do that (Task Manager eventually shows many "Docker Desktop"s running if I run via the shortcut then close the window then repeat.

Windows 10.0.18363.2094

Diagnostic E47DA4F9-6DED-433F-B321-4B3102BDA456/20220222135227

The "WhaleMenuRedesign" workaround does not solve this.

ghost avatar Feb 21 '22 16:02 ghost

I have the same problem after upgrading Docker Desktop for Windows to version 4.5.1 (74721), the tray icon is missing.

After closing the main window Docker Desktop keeps running in the background without a way to properly close it.

duke1995 avatar Feb 21 '22 22:02 duke1995

I can confirm this. It started happening right after updating from v4.4.4 to v4.5.1.

HeCorr avatar Feb 22 '22 04:02 HeCorr

Thanks for reporting! Could you please upload the diagnostics?

joe0BAB avatar Feb 22 '22 10:02 joe0BAB

It's also happening from 4.4.4 to 4.5.0. The workaround is mentioned in the blog post https://www.docker.com/blog/new-docker-menu-improved-release-highlights-with-docker-desktop-4-5/.

Just quit Docker Desktop, then add a features-overrides.json file with the following content:

{
  "WhaleMenuRedesign": {
    "enabled": false
  } 
}

Depending on your operating system, you will need to place this file in one of the following location:

On Mac: ~/Library/Group Containers/group.com.docker/features-overrides.json On Windows: %APPDATA%\Docker\features-overrides.json

But for me, the problem is not only the tray icon, also the Electron GUI is not visible, and in the logs it mentioned, that it's running... The tray icon is now visible, after doing the workaround.

Greets Adrian

adpe avatar Feb 22 '22 13:02 adpe

As noted in my initial report, the menu was working fine in 4.5.0. It only went away with 4.5.1, which funnily mentions in the release notes "Fixed a crash in the Docker Dashboard which would make the systray menu disappear."

That is a different problem if your GUI is not showing up at all, and your workaround does not work for this problem.

ghost avatar Feb 22 '22 13:02 ghost

@gpettey To help us debugging the problem, could you please upload the diagnostics? The instruction is here https://docs.docker.com/desktop/windows/troubleshoot/#diagnosing-from-the-terminal

trungutt avatar Feb 22 '22 14:02 trungutt

I gathered and uploaded the diagnostics, following the instructions mentioned above.

FYI: The first time I ran the diagnostics Docker Desktop was not running (Diagnostics ID: 94D542C3-4A05-4388-8403-DE4DF728F17F/20220223081905), so I ran the diagnostics a second time with Docker Desktop running (Diagnostics ID: 94D542C3-4A05-4388-8403-DE4DF728F17F/20220223082631).

duke1995 avatar Feb 23 '22 09:02 duke1995

It's also happening from 4.4.4 to 4.5.0. The workaround is mentioned in the blog post https://www.docker.com/blog/new-docker-menu-improved-release-highlights-with-docker-desktop-4-5/.

The workaround fixes the problem of the missing tray icon in my case also.

duke1995 avatar Feb 23 '22 09:02 duke1995

Hello I can confirm I have the same issue, for me, it happened both in 4.5.0 and 4.5.1. I have applied the workaround and I got the system tray white whale icon again. Without this, at least on Windows, I couldn't find a way to switch to Windows containers or properly exit docker desktop. On the blogpost, it sounds like the menu is working on MacOS but on windows doesn't seem to work wondering if this is just in some versions of windows.

I am on windows:

Edition Windows 10 Enterprise Version 20H2 OS build 19042.1466 Experience Windows Feature Experience Pack 120.2212.3920.0

I am on a company issues laptop so I don't get updates exactly when they are released, we are always several months behind but I am guessing that would be the case of many people.

Cheers

nmofonseca avatar Feb 23 '22 15:02 nmofonseca

@adpe's workaround worked for me. Thank you very much!

image

HeCorr avatar Feb 23 '22 15:02 HeCorr

Same issue for me when installing / upgrading to 4.5.1.

Edition Windows 10 Pro Version 20H2 OS build 19042.1526 Experience Windows Feature Experience Pack 120.2212.4170.0 WSL2 Backend

Docker GUI / Electron won't open and the system tray icon is gone. When trying to run docker, multiple processes will be spawned and are running in task manager, but there's otherwise no evidence that Docker is running at all.

The "WhaleMenuRedesign" workaround above makes the systray icon appear again. However it just displays as the 'docker isn't running' half whale, and right clicking on it only displays a context menu missing most of the useful options like open dashboard. The GUI / Electron is still completely unable to open.

The only way I could get docker working again was to downgrade to 4.4.4.

lukethegeek avatar Feb 24 '22 12:02 lukethegeek

Hi @lukethegeek

How do you downgrade without loss of data?

Greets Adrian

adpe avatar Feb 24 '22 14:02 adpe

Hi Adrian,

How do you downgrade without loss of data?

I just ended up uninstalling Docker which wiped all of the data. I really wish they gave the option to leave data intact during uninstallation, because uninstalling seems to be the only option until an update with a fix is released.

If you're using WSL2, there is possibly a method whereby you take a backup of the entire wsl distros / xvhd then just restore it after installing a working Docker version. But I have no idea how successful this approach is, or whether anything will be lost or broken in the process if downgrading.

lukethegeek avatar Feb 24 '22 15:02 lukethegeek

Hi,

I've got the same problem. After upgrade from 4.4.4 to 4.5.1 the icon in sys tray was missing, then I've applied the workaround and the icon is showed again in the sys tray but the windows for dashboard or setting are unavailable.

amari-at4 avatar Feb 24 '22 15:02 amari-at4

@gpettey @duke1995 @amari-at4 @adpe @lukethegeek Could you please try out this build https://desktop-stage.docker.com/win/main/amd64/75084/Docker%20Desktop%20Installer.exe? Hopefully it could bring back the whale icon. Please try it without the above workaround on features-overrides.json

trungutt avatar Feb 24 '22 16:02 trungutt

@trungutt unfortunately it's the same result with build 75084

Docker is running in the task manager, but no GUI or systray icon.

lukethegeek avatar Feb 24 '22 18:02 lukethegeek

Thanks you @lukethegeek. To help us debugging the problem, could you please upload the diagnostics? The instruction is here https://docs.docker.com/desktop/windows/troubleshoot/#diagnosing-from-the-terminal

trungutt avatar Feb 24 '22 20:02 trungutt

I would also encourage others to try out the build above and give back diagnostics. The root cause might not be the same for all

trungutt avatar Feb 24 '22 20:02 trungutt

Hi @trungutt

Will try it tomorrow. I've already sent my diagnostics, see issue https://github.com/docker/for-win/issues/12575.

adpe avatar Feb 24 '22 21:02 adpe

@trungutt no problem. Done.

Diagnostics ID: 7A765C8E-24A2-4E4A-8D66-F5C9965122C9/20220224205218 (uploaded)

If you need anything else, please don't hesitate to ask (e.g. installing more test versions / diagnostics / whatever). Happy to do what I can to help.

Oh also: Starting diagnostics

[PASS] DD0027: is there available disk space on the host? [PASS] DD0028: is there available VM disk space? [PASS] DD0001: is the application running? [SKIP] DD0018: does the host support virtualization? [PASS] DD0002: does the bootloader have virtualization enabled? [PASS] DD0017: can a VM be started? [PASS] DD0024: is WSL installed? [PASS] DD0021: is the WSL 2 Windows Feature enabled? [PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled? [PASS] DD0025: are WSL distros installed? [PASS] DD0026: is the WSL LxssManager service running? [PASS] DD0029: is the WSL 2 Linux filesystem corrupt? [PASS] DD0015: are the binary symlinks installed? [PASS] DD0003: is the Docker CLI working? [PASS] DD0013: is the $PATH ok? [PASS] DD0005: is the user in the docker-users group? [PASS] DD0007: is the backend responding? [PASS] DD0014: are the backend processes running? [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? [PASS] DD0032: do Docker networks overlap with host IPs? [SKIP] DD0030: is the image access management authorized? [PASS] DD0033: does the host have Internet access? No fatal errors detected.

lukethegeek avatar Feb 24 '22 21:02 lukethegeek