Docker using socket can't spawn slave-ssh-images?

12 views
Skip to first unread message

Nicklas Karlsson

unread,
May 19, 2018, 10:34:23 AM5/19/18
to Jenkins Users
Hi,

  I have a custom built jenkins-master Docker image that essentially just puts the jenkins user in the root group so that the container can see the /var/sock/docker.socket when I mount it
If I enter the socket URL as the docker URL, the test button reports success but If I make a docker cloud with e.g. the evarga/jenkins-slave (SSH), I can see it spawn the slave container but then it times out in 60 seconds.
The slave image works fine as standalone and I can ssh into it with jenkins/jenkins just fine. Also, the slave image spawns fine (and works) if I configure jenkins to use the docker REST endpoint of the host

Anyone run into this?
Reply all
Reply to author
Forward
0 new messages