How to fix docker ‘Permission denied on accessing Docker daemon socket’
Are you facing this error?
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: dial unix /var/run/docker.sock: connect: permission denied
The simplest command to solve this is by running this command :
$ sudo usermod -a -G docker $USER
Once you got this command running, you need to logout from the computer, ang logging back again to get the effect.