desktop-linux icon indicating copy to clipboard operation
desktop-linux copied to clipboard

docker-desktop startup hangs forever on servers without a graphical session

Open nicks opened this issue 1 year ago • 0 comments

Description

docker-desktop startup hangs forever on servers without a graphical session

Reproduce

  1. Start a linux box without a graphical session
  2. 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

docker version

hangs forever

docker info

hangs forever

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<HOST> [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

nicks avatar Jan 02 '24 15:01 nicks