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

Source URL: https://www.digitalocean.com/community/questions/how-to-fix-docker-got-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket

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
content_copy