There's no "recommended" solution, each plugin comes with it's own vision, benefits and drawbacks.
docker-plugin can be used to run dockerized agents, it can run from a dockerized jenkins master with /var/run/docker.sock without docker CLI installed, as it uses a java client library for docker API. docker-slaves-plugin do rely on running docker CLI executed from master, I planned to use a java API at some point but still need to work on this. In the meantime I don't think there's a simple way to just install docker CLI. Installing full docker will make your image a bit bigger with additional files on filesystem but there won't be any extra process running, so not a major issue (considering jenkins docker image is already a big one) 2017-12-03 18:42 GMT+01:00 Jeeva Chelladhurai <[email protected]>: > Hello All, > > I would like to build Docker images from a Dockerized Jenkins. There are > multiple solution out there but what is the recommended solution... > > I have been using ssh node as a work around, but I was told to use > https://wiki.jenkins.io/display/JENKINS/Docker+Slaves+Plugin . In order > for this plugin to work, I have to install docker inside the Jenkins (my > docker host is RHEL) and also mount the /var/run/docker.sock or enable > TLS. Isn't installing docker blow up the size of the Jenkins image? > > Any way to install just the docker client in side the Jenkins image? > > Thanks, > Jeeva > > -- > Jeeva K S Chelladhurai > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-users/CAK5CbZV3Sc-fgYS_34PgEwRzsF20% > 3Dp6mbaagbR2Ehtz01op2%3Dw%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAK5CbZV3Sc-fgYS_34PgEwRzsF20%3Dp6mbaagbR2Ehtz01op2%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzk7GJDmKUKQNvt4PzLpXHtTp%2B7BnikYfeysX7_kdpxcUA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
