DEV Community

Manish R Warang
Manish R Warang

Posted on • Originally published at blog.g33kzone.com on

Jenkins - Docker Setup Error

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

The following steps will help resolve the error

Add Jenkins user as the root user

sudo usermod -a -G root jenkins

Enter fullscreen mode Exit fullscreen mode

Restart Jenkins application

sudo service jenkins restart

Enter fullscreen mode Exit fullscreen mode

Top comments (0)