"docker desktop starting" takes forever.. docker.service not found, linux 22.04

  • Issue type : Docker Starting takes forever, after installation
  • OS Version/build : Linux 22.04
  • App version : 4.12, installed from debian package
  • Steps to reproduce:

Hello there, so I just follow the installation steps Install Docker Desktop on Ubuntu | Docker Documentation, plus also the pre-requisite Install Docker Engine on Ubuntu | Docker Documentation, and also add my local user to the docker group as mention in the post-install link, I also did log out and log back it, or did the newgrp docker, still no luck

then, I simply did systemctl --user start docker-desktop which opens my docker, I click accept, and it just hangs there in “Docker Desktop starting…”

Here are some maybe related logs:

  1. sudo docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

  1. docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///home/name/.docker/desktop/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
  1. ls -la /var/run/docker.sock
srw-rw---- 1 root docker 0  9月 26 22:53 /var/run/docker.sock
  1. docker version
    sometimes it outputs this
Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory
Client: Docker Engine - Community
 Cloud integration: v1.0.29
 Version:           20.10.18
 API version:       1.41
 Go version:        go1.18.6
 Git commit:        b40c2f6
 Built:             Thu Sep  8 23:11:43 2022
 OS/Arch:           linux/amd64
 Context:           desktop-linux
 Experimental:      true

sometimes this

Cannot connect to the Docker daemon at unix:///home/name/.docker/desktop/docker.sock. Is the docker daemon running?
Client: Docker Engine - Community
 Cloud integration: v1.0.29
 Version:           20.10.18
 API version:       1.41
 Go version:        go1.18.6
 Git commit:        b40c2f6
 Built:             Thu Sep  8 23:11:43 2022
 OS/Arch:           linux/amd64
 Context:           desktop-linux
 Experimental:      true

  1. service docker status or sudo systemctl restart docker
    Unit docker.service could not be found.

Any help is greatly appreciated, I’ve been stuck for ~2days, try debugging this :pray:

1 Like

Same issue for me :frowning: