docker agent in declarative pipeline actually translate into docker.inside <https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineScript.groovy#L56> (see docker-pipeline-plugin for details) which require running docker containers on the same node as the build (so it can access workspace)
2017-09-02 19:50 GMT-07:00 'Peter Teichner' via Jenkins Users < [email protected]>: > That doesn't really work as I haven't got docker or have no intention of > running docker on the node of the jenkins master. So is there a way to use > a remote docker machine or no? > > On Saturday, 2 September 2017 00:00:25 UTC+1, Reza Etezal wrote: >> >> You need to either set it in the Global Tool Confoguration, at the system >> level https://<jenkins URL>/configureTools/, or in the Tool Location at >> the node level https://<jenkins URL>/computer/<node name>/configure >> >> >> On Friday, September 1, 2017 at 6:40:32 PM UTC-4, Peter Teichner wrote: >>> >>> I've got a quick question: when using declarative pipeline with the >>> agent specified as a docker image how does the pipeline determine where the >>> docker executable is? Is there a way to set a remote docker over TCP? >>> >>> agent { >>> docker { >>> image 'maven:3-alpine' >>> label 'my-defined-label' >>> args '-v /tmp:/tmp' >>> } >>> } >>> >>> I use CoreOS for all the Docker related stuff and I haven't got Docker >>> running on the Jenkins master. >>> >>> -- > 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/346beadc-4834-49ba-a6f1-0c91e482e13c%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/346beadc-4834-49ba-a6f1-0c91e482e13c%40googlegroups.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/CANMVJzmebNSjL9CiCgWUGs9G4x63NRFuGdEa3KoQ4cb0uZ2maw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
