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.27/images/json: dial unix /var/run/docker.sock: connect: permission denied
I am running jenkins as a user 'myuser'
Solution :
usermod -a -G root myuser
service jenkins restart
OR
usermod -a -G docker $USER
Logout and login from the terminal
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.27/images/json: dial unix /var/run/docker.sock: connect: permission denied
I am running jenkins as a user 'myuser'
Solution :
usermod -a -G root myuser
service jenkins restart
OR
usermod -a -G docker $USER
Logout and login from the terminal
No comments:
Post a Comment