vjuranek / docker-build-step-plugin

Other
8 stars 97 forks source link

Unix socket support #31

Open zuBux opened 8 years ago

zuBux commented 8 years ago

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?

jonaseck2 commented 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.

goacid commented 8 years ago

+1 this option is really important.

jonaseck2 commented 8 years ago

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...

a2geek commented 8 years ago

I was able to accomplish this, but had to do some extra work to make it functional:

Credit for this goes elsewhere, but I didn't keep the link, unfortunately.