Hi - I am facing the following issue in Jenkins ver. 2.190.2.

I have installed docker plugin and setup a docker executor thru Manage 
Jenkins -> Configure System
I have set the agent correctly in Jenkinsfile and the checkout and build 
pipeline stages are executing correctly. However, when I run tests that 
involve creating temporary docker containers, the pipeline fails with error 
"panic: : dial unix: missing address"
I tried troubleshooting this and the slave container is not able to 
accessdiscovered its not able to access the host docker daemon. I verified 
in the container settings that the following mapping is present for volumes 
 
/var/run/docker.sock:/var/run/docker.sock

I tried putting commands in Jenkinsfile e.g. docker images and I get 

Cannot connect to the Docker daemon at unix://127.0.0.1:2376. Is the docker 
daemon running?
script returned exit code 1


Surprisingly though, if I docker exec into the same running container I am 
able to successfully run docker commands that access the host's docker 
daemon. 
Only the docker commands in the Jenkinsfile are unable to access the host 
docker daemon. I also verified the container mounts using docker inspect 
and the volume mapping for docker.sock is present.  

Some information about the environment
Host - Ubuntu 18.04 (AWS EC2)
Docker CE - 19.03
Jenkins 2.190.2

Any help is appreciated as I have exhausted all my options. 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8914531d-c729-4c8a-96a8-a5a95911abf7%40googlegroups.com.

Reply via email to