Tag Archives: Got permission denied while trying to connect to the Docker daemon socket

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

Why are there a series of technical challenges behind “OMG buy it”>>>

Error while running docker ps -a

> docker ps -a
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.39/containers/json?all=1: dial unix /var/run/docker.sock: connect: permission denied

solution

sudo chmod 666 /var/run/docker.sock