Thursday, February 22, 2018

Error when starting Docker from Jenkins


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


usermod -a -G docker $USER
Logout and login from the terminal

No comments:

Post a Comment