Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37088

Run docker build inside the ephemeral slave

    Details

    • Similar Issues:

      Description

      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 ?

        Attachments

          Activity

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

          Show
          ndeloof 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.
          Hide
          dsinotte 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?

          Show
          dsinotte 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?

            People

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

              Dates

              • Created:
                Updated:
                Resolved: