docker / desktop-linux

Bug reports for Docker Desktop for Linux
https://docs.docker.com/desktop/linux/
73 stars 5 forks source link

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

Open nicks opened 5 months ago

nicks commented 5 months ago

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