I would like to be able to excute a docker build inside the slave. For example I could choose to use the official docker container from Dockerhub (say: docker:1.10.3) which includes the required docker binaries, but I don't see any way to bind the docker socket from the host in the docker-slaves plugin config, e.g. -v /var/run/docker.sock:/var/run/docker.sock

      Failing that, is it possible to combine this plugin with others to achieve the same behaviour ?

          [JENKINS-37088] Run docker build inside the ephemeral slave

          This is definitively something we want to support.
          bind mount for docker.sock is the easy part, the more complex one is for the remoting container user (which own the workspace volume) to have access to it, i.e belong to 'docker' group.

          Nicolas De Loof added a comment - This is definitively something we want to support. bind mount for docker.sock is the easy part, the more complex one is for the remoting container user (which own the workspace volume) to have access to it, i.e belong to 'docker' group.

          Deryk Sinotte added a comment -

          +1

          First of all, thanks for the effort on this plugin. Seems like a good use of the technology. Any short-term plan to even just allow us to specify -v /var/run/docker.sock:/var/run/docker.sock when launching the slave containers?

          Deryk Sinotte added a comment - +1 First of all, thanks for the effort on this plugin. Seems like a good use of the technology. Any short-term plan to even just allow us to specify -v /var/run/docker.sock:/var/run/docker.sock when launching the slave containers?

            ndeloof Nicolas De Loof
            goffinf Fraser Goffin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: