desktop-linux
desktop-linux copied to clipboard
Exiting Docker Desktop UI also closes any open terminal windows
Issue is that when exiting the Docker Desktop UI by right-clicking on the icon in the system notification area, terminal windows are also closed (even if you are actively typing in them or they are producing output at the time).
I can't find any option within Docker Desktop to disable this behaviour, so I assume it's an unintended (and frustrating) bug.
This happens on a fresh install of Docker Desktop with no images, volumes, containers, etc as well as an updated Docker Desktop as well as Docker Desktop containing 2-3 images, containers and one volume.
- [x] I have tried with the latest version of Docker Desktop
- [ ] I have tried disabling enabled experimental features
- [ ] I have uploaded Diagnostics
- Diagnostics ID:
Expected behavior
- Docker Desktop UI exits. Terminal windows stay where they are.
Actual behavior
- Docker Desktop UI exits. At the same time, terminal windows close suddenly and unexpectedly.
Information
- Linux distro: Linux Mint (with Cinnamon desktop environment)
- Distro version: 21.0 Vanessa
- Docker Desktop Version: 4.15.0 (but also affecting 4.14.x and 4.11.x)
- Note: This is a native Linux system, not a VM running in Windows or anything, in case that matters
Steps to reproduce the behavior
I don't think you need any Docker images, any special settings, modifications, extensions as this issue happens straight out of the box. Docker is not logged in with an account or connected to anything remote. Also, it does not matter if the terminal window(s) were opened before or after Docker Desktop.
- Open a terminal command window(s)
- Open Docker Desktop
- Close Docker Desktop (which minimizes it to the system notification area)
- Exit Docker Desktop by right-clicking on its icon in the notification area
- Observe that the terminal command window closes at the same instant as Docker Desktop exits
Exact same issue here, with same steps. Linux Mint (21.1 - Vera). Docker Desktop v4.16.2
Exact same issue here, with same steps. Linux Mint (21.1 - Vera). Docker Desktop v4.16.2
Exact same issue, steps, Mint version and Docker Desktop version here too.
Exact same issue here, with same steps. Linux Mint (21.1 - Vera). Docker Desktop v4.16.2
Same issue.
Same issue here. Right-clicking on the Docker Desktop icon in the system tray and clicking "Quit Docker Desktop" results in all open gnome-terminal windows being closed at the same time as the Docker Desktop UI.
It seems that Docker Desktop is killing the gnome-terminal-server
process on exit.
Reproduced in
- Linux Mint 21.0-Vanessa and 21.1-Vera (both Cinnamon DE)
- fresh installs of Docker Desktop v4.19.0
- gnome-terminal v3.44.0.
As a mitigation, I discovered that Docker Desktop only kills the default gnome-terminal-server
process that is spawned in the background by gnome-terminal
. If you start gnome-terminal-server
manually, it survives Docker Desktop shutdown.
Mitigation Steps
- Kill any existing instance of
gnome-terminal-server
. This can be done by closing Docker Desktop per this issue, or by killing the process manually, e.g. by finding its PID withps aux | grep gnome-terminal-server
and thenkill <pid>
. This will kill any open gnome terminals windows. - Start
gnome-terminal-server
without opening a terminal. In Cinnamon, this can be done by typingALT+F2
and entering/usr/libexec/gnome-terminal-server
(the full path to the gnome-terminal-server executable).- Note: if you just start
gnome-terminal
from the ALT+F2 menu, the background gnome-terminal-server process that it creates will still not survive Docker Desktop shutdown.
- Note: if you just start
- Open terminals like normal. All new
gnome-terminal
windows should now connect to thegnome-terminal-server
process you started, and should now survive Docker Desktop shutdown.
Still occurring with Docker Desktop version 4.21.1. All reports of this so far (including me) have been using Linux Mint 21; perhaps this behavior is specific to Mint and/or the Cinnamon desktop environment. The workaround from https://github.com/docker/desktop-linux/issues/109#issuecomment-1544438060 has been working for me, but it shouldn't really be necessary: Docker Desktop shouldn't be killing processes it didn't start.
Still occurring with 4.24.2, on Archlinux with lxde. So it is not specific to Mint and pretty annoying...
Still an issue in 4.27! Also on Debian 12 with cinnamon. VERY anoying!
Still occurring with version 4.30.0-149282. The workaround from https://github.com/docker/desktop-linux/issues/109#issuecomment-1544438060 (start gnome-terminal-server
manually first, and only then start docker-desktop
) continues to work.
Still occurring. v.4.34.2 (167172)