permission denied while trying to connect to the Docker daemon socket

Solved1.35K viewsDockerdocker

permission denied while trying to connect to the Docker daemon socket

Getting the below error

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/search?limit=25&term=hello: dial unix /var/run/docker.sock: connect: permission denied

Share:
vito Selected answer as best September 21, 2021
0

You need to run the docker commands with root privileges. You can either switch to the root user with the below command,

sudo su

…and then execute the docker commands normally or else you can write sudo before every docker command you execute.

Share:
vito Selected answer as best September 21, 2021
0
You are viewing 1 out of 1 answers, click here to view all answers.