Fixing Got Permission Denied While Trying to Connect to the Docker Daemon Socket
Fixing Got Permission Denied While Trying to Connect to the Docker Daemon Socket
I'm working on my ubuntu machine and trying to set up a few docker containers. Anytime I tried running any docker
command, I got the error saying got permission denied while trying to connect to the docker daemon socket
. I started by just adding sudo
in front of any docker
command, but the extra typing got annoying really fast.
I fixed this error by changing my permissions on the docker daemon socket. sudo chmod 666 /var/run/docker.sock
seemed to do the trick.