Got permission denied while trying to connect to the Docker daemon socket


#1

Hi :), I am having a problem running 0.28.0 version of blockstack on Elementary OS Loki (based on ubuntu 16.04). 0.26.0 works without a problem. I also added user into docker group

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.29/containers/json?filters=%7B%22name%22%3A%7B%22blockstack-browser%22%3Atrue%7D%7D: dial unix /var/run/docker.sock: connect: permission denied
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.29/containers/json?filters=%7B%22name%22%3A%7B%22blockstack-browser%22%3Atrue%7D%7D: dial unix /var/run/docker.sock: connect: permission denied
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.29/containers/json?all=1&filters=%7B%22name%22%3A%7B%22blockstack-browser%22%3Atrue%7D%2C%22status%22%3A%7B%22exited%22%3Atrue%7D%7D: dial unix /var/run/docker.sock: connect: permission denied
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.29/containers/create?name=blockstack-browser-static: dial unix /var/run/docker.sock: connect: permission denied.
See ‘docker run --help’.
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.29/containers/create?name=blockstack-browser-cors: dial unix /var/run/docker.sock: connect: permission denied.
See ‘docker run --help’.


#2

You need to have permission to interact with docker. You may need to log out and log in again for the group change to take effect.


#3

That worked for me as well. I had the same problem initially.
Thank you.