Tutorials / Tech blog / Geek Zone

Latest Posts

Wednesday, February 12, 2020

Jenkins Error - Permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock



While setting up Docker plugin within Jenkins one might encounter the following error

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




Following steps will help resolve the error
  • Add Jenkins user as root user
sudo usermod -a -G root jenkins

  • Restart Jenkins applicaion
sudo service jenkins restart

1 comment: