Got Permission Denied While Trying To Connect To The Docker Daemon Socket

Source URL:

Language: shell

Created on: 2020-05-08 21:25:28

sudo chmod 666 /var/run/docker.sock

I've just installed docker but I have to run it with sudo every time. If I don't add sudo I get the following error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdo