Docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock

后端 未结 30 1769
孤独总比滥情好
孤独总比滥情好 2020-11-27 09:00

I am new to docker. I just tried to use docker in my local machine(Ubuntu 16.04) with Jenkins.

I configured a new job with below pipeline script.



        
30条回答
  •  一整个雨季
    2020-11-27 09:49

    I added the jenkins user to root group and restarted the jenkins and it started working.

    sudo usermod -a -G root jenkins
    sudo service jenkins restart
    

提交回复
热议问题