Open zuBux opened 8 years ago
Having the same problem: Using unix:///var/run/docker.sock is documented in docker-java used to communicate with the docker api so it should work if it's passed on transparently.
+1 this option is really important.
Confirmed that javadocker works just fine with unix:///var/run/docker.sock.
Got the development environment set up but couldn't get this plugin to list itself under configuration even though it's listed under installed plugins. Never done Jenkins plugins before but it should be an easy fix...
I was able to accomplish this, but had to do some extra work to make it functional:
-v /var/run/docker.sock:/var/run/docker.sock
docker exec --user root -it jenkins /bin/bash
to launch a container root shell.groupadd -g 999 docker
Please note the '999' is the group id of the docker group in the hosts' /etc/group
fileusermod -a -G docker jenkins
to place the Jenkins user into the Docker group.unix:///var/run/docker.sock
Credit for this goes elsewhere, but I didn't keep the link, unfortunately.
Hi,
Does the plugin support Unix sockets for connecting to the Docker server? I 've tried adding "unix:///var/run/docker.sock" as a URL but I 'm getting an error, so I assume it hasn't been implemented. There is no reference to Unix sockets in the documentation as well. Maybe it can be added in the feature?