to use docker-slaves plugin you'll need docker socket or a DOCKER_HOST url
set so master can run docker commands

2017-06-07 4:33 GMT+02:00 Jeeva Chelladhurai <sje...@gmail.com>:

> > docker-slaves don't follow the classic slave approach, it doesn't use
> any transport (ssh, jnlp) but the plain docker CLI terminal emulation.
>
> Does that mean I have to bind mount docker socket to the Jenkins container?
>
> -Jeeva
>
> On Tue, Jun 6, 2017 at 10:07 PM, nicolas de loof <nicolas.del...@gmail.com
> > wrote:
>
>> docker-slaves don't follow the classic slave approach, it doesn't use any
>> transport (ssh, jnlp) but the plain docker CLI terminal emulation.
>>
>> 2017-06-06 18:19 GMT+02:00 Jeeva Chelladhurai <sje...@gmail.com>:
>>
>>> currently I am using SSH slaves for building docker images. Is it a
>>> recommended practice?
>>>
>>> How does Docker slave plugin works? Does function like a slave or
>>> piggyback on any of the existing slaves?
>>> https://wiki.jenkins-ci.org/display/JENKINS/Docker+Slaves+Plugin
>>>
>>> On Tue, Jun 6, 2017 at 7:45 PM, nicolas de loof <
>>> nicolas.del...@gmail.com> wrote:
>>>
>>>> When you're running Jenkins in a container don't build on master,
>>>> always connect a slave. This slave can also be a container. Doing this
>>>> you'll enforce process isolation.
>>>> To run docker commands like 'docker build' the commonly used approach
>>>> is to bind mount /car/run/docker.sock. that's beer red wings if you just
>>>> throw away security: build can do anything on host until you add another
>>>> isolation layer, for sample a LXD container.
>>>>
>>>> Le 6 juin 2017 4:03 PM, "Jeeva Chelladhurai" <sje...@gmail.com> a
>>>> écrit :
>>>>
>>>> I run by Jenkins inside a docker container. Now I need to build docker
>>>> images from this Jenkins instance. Would you please suggest me some 
>>>> options.
>>>>
>>>> --
>>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/jenkinsci-users/CAK5CbZXmRA8w4to2zRO01KCz0QJcGQuY0azXLZQ
>>>> 5EBG%3DmDfJfw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAK5CbZXmRA8w4to2zRO01KCz0QJcGQuY0azXLZQ5EBG%3DmDfJfw%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 jenkinsci-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/jenkinsci-users/CANMVJzk5X%2BMsLrptSGpwCSKXgGKpOLdAEjzRB
>>>> cfPbHrnsO3vwg%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzk5X%2BMsLrptSGpwCSKXgGKpOLdAEjzRBcfPbHrnsO3vwg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-users/CAK5CbZUEqY-2FXVWYApHVNMjz_7m%2BdmLyHL7f
>>> 0U%2BTyMe9b8%3D7g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAK5CbZUEqY-2FXVWYApHVNMjz_7m%2BdmLyHL7f0U%2BTyMe9b8%3D7g%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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/jenkinsci-users/CANMVJzmegp%3DN%2BRJF_vVTkM5ghUVw3KQJ7KA
>> x7h%2BN4XrG__q5Gw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmegp%3DN%2BRJF_vVTkM5ghUVw3KQJ7KAx7h%2BN4XrG__q5Gw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAK5CbZWfE7w2mVsfQzbUZtkEwNZk0
> ffdRiCJo-Sh%3D-L8CFHZ3Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAK5CbZWfE7w2mVsfQzbUZtkEwNZk0ffdRiCJo-Sh%3D-L8CFHZ3Q%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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzn9xBLXNOV9Z_KSuSjUJC1T%2Bpp5g19p3voMGuEG5ObeKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to