Just to tell you the background, I want to run Jenkins agents as Docker container. Jenkins Master is not running in a container. Therefore, I’ve installed Docker Plugin in my Jenkins. However, I’m unable to connect to Docker Daemon from Jenkins Docker Plugin. Getting the below error during Test Connection:
When supply Docker Host URL as “unix://127.0.0.1:2375”, then
connect(…) failed: Permission denied: /var/run/docker.sock
When supply Docker Host URL as “tcp://127.0.0.1:2375” then
Connection refused: /127.0.0.1:2375
Docker Plugin: 1.1.4
Any help in this regard is very appreciated.