docker-desktop startup hangs forever on servers without a graphical session
Reproduce
Start a linux box without a graphical session
Start docker-desktop
Even though systemd thinks that the backend is running and healthy, no docker commands actually work. docker ps hangs forever. (docker ps hanging might also be a separate docker cli bug where the timeouts aren't being enforced correctly)
Expected behavior
either it starts, or it fails to start, reporting the correct exit code back to systemd
Description
docker-desktop startup hangs forever on servers without a graphical session
Reproduce
Even though systemd thinks that the backend is running and healthy, no docker commands actually work.
docker ps
hangs forever. (docker ps
hanging might also be a separate docker cli bug where the timeouts aren't being enforced correctly)Expected behavior
either it starts, or it fails to start, reporting the correct exit code back to systemd
docker version
docker info
Diagnostics ID
e2ca80e7-fb59-44b3-b5ba-6d550cdd9195/20240102154822
Additional Info
This particular error in the logs
~/.docker/desktop/log/host/com.docker.backend.log
looks suspicious:[2024-01-02T15:38:47.790116496Z][com.docker.backend.electron][E] electron shutdown by signal: abort
[common/cmd/com.docker.backend/internal/electron.open.func1()
[ common/cmd/com.docker.backend/internal/electron/electron.go:182 +0x225
[common/cmd/com.docker.backend/internal/electron.open in goroutine 42
[ common/cmd/com.docker.backend/internal/electron/electron.go:157 +0x196