Docker client tries to connect to the wrong sock file
Bug #2020890 reported by
Bartosz Woronicz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
docker.io (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
That is true for both apt package and snap
it should /run/docker.sock instead of /var/run/
$ docker ps
Got permission denied while trying to connect to the Docker daemon socket at unix://
$ apt show docker.io
Package: docker.io
Version: 20.10.21-
Built-Using: glibc (= 2.35-0ubuntu3), golang-1.18 (= 1.18.1-1ubuntu1.1)
Priority: optional
Section: universe/admin
Origin: Ubuntu
$ snap info docker |grep installed
installed: 20.10.24 (2893) 135MB -
To post a comment you must log in.
does this work?
sudo snap run --shell docker.docker
$ ls -latr /var/run /run/docker.sock /var/run/ docker. sock docker. sock
lrwxrwxrwx 1 root root 4 Mar 25 04:54 /var/run -> /run
srw-rw---- 1 root docker 0 May 24 09:07 /var/run/
srw-rw---- 1 root docker 0 May 24 09:07 /run/docker.sock
if yes, does it not work without sudo?
Is so, is your user in the docker group, and have you relogged in after adding userself to the docker group?