The docker cli is not available in the master, as that is also containerized. 
Running containers in a container seems like defeating the purpose.

But, like two of you have mentioned, maybe this does not get spawned on my 
external docker host at all, which would be a problem. If that is the case, I’m 
really surprised, as the cloud I have configured for the plugin is a remote 
host.

There seems to be lot of pitfalls setting up this kind of setup. If someone has 
one and could write up a detailed description of how to set it up, that would 
be quite usable. I will, if I ever get this to work…

/andreas

From: jenkinsci-users@googlegroups.com <jenkinsci-users@googlegroups.com> On 
Behalf Of Ivan Fernandez Calvo
Sent: den 5 april 2019 20:27
To: Jenkins Users <jenkinsci-users@googlegroups.com>
Subject: [SOCIAL NETWORK] Re: Trying to setup jenkins to spin up docker 
containers on demand as build slaves in a pipeline - getting unclear errors


Unsubscribe

It appears that you have subscribed to commercial messages from this sender. To 
stop receiving such messages from this sender, please 
unsubscribe<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsecure-web.cisco.com%2F1g-T0xaU-3ksKzIoI4iLEfecORGFuh8Duigh9bUr8lkcye3nQsZp4qcne-J0glmkpEBkJEq56Vq1PEoXHghPsXiLS3VpOmdA7vfR0XxokyyvuCV9D0VhEJIovUH_0P43OhoRZQ7mXitj3FygoZF6GJarrcguDORlx2IJN71AkYDEfETVEGNj97xwl_UJEloLWjqNAXoLzUGn3Sma99GrtuYhkIRh7ZnbskfT2wCd8WNdq7_JOgby5-tULwXg211Q14TkR4jq-yU6L41yeLUYIGenzm4PY4XczBLrM3ZgfSDBsKSkvONu4A3maswuYGDlpoWhdw6CNqpIBXZQ3bVbp8IPUN8H8UnHUI11MLylsAIgLjc5ZL-ArGJFEGqOtwggXiQS1sEJqbGMqGeANSceZwES9wmwWm3Y7JxnIJ1zQGiZAMk2jgEeMe0x2-y4-u4MZWCZKKD12Dw0yE9lTC5XNryeQ57gOokNP94Cxpkm4ZwA%2Fl68%253Amailto%253Agooglegroups-manage%252B536306868951%252Bunsubscribe%2540googlegroups.com57%253Ahttps%253A%252F%252Fgroups.google.com%252Fgroup%252Fjenkinsci-users%252Fsubscribe51%253Amailto%253Ajenkinsci-users%252Bunsubscribe%2540googlegroups.com34%253Ahttps%253A%252F%252Fgroups.google.com%252Fd%252Foptout105%253Ahttps%253A%252F%252Fgroups.google.com%252Fd%252Fmsgid%252Fjenkinsci-users%252Ff3d5b590-cb72-493e-b3fd-a04a799ccf14%252540googlegroups.come&data=02%7C01%7Candreas.davour.external%40veoneer.com%7C5b82d7132cc7412a8db308d6b9f452eb%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900856361393039&sdata=Avb4BSXFn8I7U7RCtQ6cA%2Bt04zwVujd3oxufoz8fqCs%3D&reserved=0>
Do you have installed docker command line tool in your Master? you need it, 
check also the PATH of the user that runs Jenkins.

El viernes, 5 de abril de 2019, 15:51:00 (UTC+2), Zero Uno escribió:
Il giorno mer 3 apr 2019 alle ore 16:53 'Andreas Davour' via Jenkins Users 
<jenkins...@googlegroups.com<javascript:>> ha scritto:

I have specified a template, which I can confirm is present on the remote 
dockerhost with “docker image ls”. It is built with “FROM jenkins/ssh-slave” 
and then a few apt-get lines.

Hi, did you assign a label to the docker agent template?

pipeline {
     agent {
         docker {
             image "slavetest:latest"
         }
     }

I think you should replace this with:

agent {
    node {
        label '<template-label>'
        }
    }

So Jenkins should automatically spawn a container on the docker host which 
contains a template where this label is assigned, and then build the pipeline 
in the container.


Running on 
Jenkins<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2F10.238.92.69%2Fcomputer%2F(master)%2F&data=02%7C01%7Candreas.davour.external%40veoneer.com%7C5b82d7132cc7412a8db308d6b9f452eb%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900856361393039&sdata=F7Ju7fen%2F2vtgWJOCqvQG%2Bl84ULfbrhhevfOhfnE5Lg%3D&reserved=0>
 in /var/jenkins_home/jobs/pipetest/workspace

If "Jenkins" is your master host, then IMHO this job is being run on the 
master, instead of being run on the remote docker host.

01
--
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<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsecure-web.cisco.com%2F1wZJG5h5CNVn2dkATS_LO0fb71uPZSmYRIstop2p8bvY3OgQsr75gkQyhic43arM_L-jcietg8QsVYwjANOs-JGuBz31GfNQBmNPPPijSq6jaXdABuB2MWyN8YA49l6lrSTmhiQ97mBQzSKS-x-oDa4jiJQeTYHWcVvgsxfHIvMjb9nDmjnDogOwhC66XIadYOz0FFpzsp7-fflmKrVlP-LYZ5d7d7-ZXWMttgL6r73Fa1CNr-BBqUq0xztG1AlivsTFXbSKU-H6ftCCd8wxpaROEK_eX8KlDyncQxqg4wb_WgP9gfeKn9OUZXPLKJrFD745qZYVYrmjvuPqsXkCWJnkCMNyPYpX2Hd6uhdqsR5wFypJLX_mfYiloUszsqyrsazQqtb_-G0AtPZhHCDLVj-eYeTXeHHyYoUkQ-CIeGP21qYbsDWFSQlTkayMSTIrK1MEmwHKSywcF0N1HCmObrEZ67-gXZEEhFy2Jje7Fk5s%2Fl51%253Amailto%253Ajenkinsci-users%252Bunsubscribe%2540googlegroups.come&data=02%7C01%7Candreas.davour.external%40veoneer.com%7C5b82d7132cc7412a8db308d6b9f452eb%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900856361393039&sdata=x%2BDxVjqoBNFfcZxYx%2B3tjPl47FSDO68jgeiqf77bUEk%3D&reserved=0>.
To view this discussion on the web visit 
http://secure-web.cisco.com/1K-yULaFpe-kgW7pLJ_Pv9GkM9a50_K82v_UV_AO661yITxD65YPytS-2e3jtOvHA6VJQyVzzyUIUrsm-mWFNq0CVTaxjNRNhOT06voGNpaNNzksZznhhNzSQnOh_YnlOphurI5q70EIsUAeaQ0xxOpi28IxkjOF_0DUtrbEt33XqHwM4qwA6xXdTdx1mSb71KbBUWOq4Qhk4X7GHRBpxrl4nOQ3fSsvxTyWlo82GgMSB8ITEuEPTKWjvpRCX6aoCD_RZbTbhVQld0whfR9F9h0Lki_cFGmqpK46VeiVcUK_bt5ov3I3vmY7OG4slfD1wbxj5WmYEiB0hgmPIEAvHluiNrTaRYPd9fEJR_8R6IeFZL2o17sx71XLt3Lk_gSyS44WWr5mJb3IjlQjglZ2b1hNTe7Mh2fuUuESXimT53IKNuo6wlO-emHypORxm0xgcyZuNE-Txp3NCeTXT-lj4qhzS8rGs5qqVtsUVLcIP_oA/l105%3Ahttps%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fjenkinsci-users%2Ff3d5b590-cb72-493e-b3fd-a04a799ccf14%2540googlegroups.come<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsecure-web.cisco.com%2F1K-yULaFpe-kgW7pLJ_Pv9GkM9a50_K82v_UV_AO661yITxD65YPytS-2e3jtOvHA6VJQyVzzyUIUrsm-mWFNq0CVTaxjNRNhOT06voGNpaNNzksZznhhNzSQnOh_YnlOphurI5q70EIsUAeaQ0xxOpi28IxkjOF_0DUtrbEt33XqHwM4qwA6xXdTdx1mSb71KbBUWOq4Qhk4X7GHRBpxrl4nOQ3fSsvxTyWlo82GgMSB8ITEuEPTKWjvpRCX6aoCD_RZbTbhVQld0whfR9F9h0Lki_cFGmqpK46VeiVcUK_bt5ov3I3vmY7OG4slfD1wbxj5WmYEiB0hgmPIEAvHluiNrTaRYPd9fEJR_8R6IeFZL2o17sx71XLt3Lk_gSyS44WWr5mJb3IjlQjglZ2b1hNTe7Mh2fuUuESXimT53IKNuo6wlO-emHypORxm0xgcyZuNE-Txp3NCeTXT-lj4qhzS8rGs5qqVtsUVLcIP_oA%2Fl105%253Ahttps%253A%252F%252Fgroups.google.com%252Fd%252Fmsgid%252Fjenkinsci-users%252Ff3d5b590-cb72-493e-b3fd-a04a799ccf14%252540googlegroups.come%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candreas.davour.external%40veoneer.com%7C5b82d7132cc7412a8db308d6b9f452eb%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900856361403040&sdata=N%2BIfUgzqTUm6MG%2FtmR%2FSmmpBxLdHZ7t0EDzmoVL2OJU%3D&reserved=0>.
For more options, visit 
http://secure-web.cisco.com/1nP1q_KfLMe4cxqwUQatcJPyokqOyp_WwFyM4c9HN0UHNH8iy00tGbV-T1hKqHnBAxf8MiY74AvwEgtzdQvZQ5ewsmIR827RSRZ6fAwL_OVO6QVBFvDV8RQCCfLsjvpO6QlfqyVgYVCqxgtYw29btbWrvv809fQovruftox-yTBFZ6oMB8g9UVq8YizJANz7TdHJulxdqSjw4mo5OQbz-0xod1KpxNmkPnM93akBxOCfkz4RGaqlwjOaBTVCP0lwJN20ZwyVrJN1NXJK1L_SN5zBOaKa_3G3EIWXL6hzK7sgHRFrMMJtn3XZBm7xf3OUDe-1UN3owJ6aKKQPGlnjUKDuQfeUpgQSfoGFCgSug8rHFz8ZVbQ6ihTeTjFpFdwBij0OW_hI_ETXFNboHGA_QDlvvuz-9uSMXBTvS9FEaNjV4S9IFUj7Qvk2idBgdvM9lthTEYZ9LQAEo_Q8TJPggI86WAidJ2fuH9v69QLyC9To/l34%3Ahttps%3A%2F%2Fgroups.google.com%2Fd%2Foptoute<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsecure-web.cisco.com%2F1nP1q_KfLMe4cxqwUQatcJPyokqOyp_WwFyM4c9HN0UHNH8iy00tGbV-T1hKqHnBAxf8MiY74AvwEgtzdQvZQ5ewsmIR827RSRZ6fAwL_OVO6QVBFvDV8RQCCfLsjvpO6QlfqyVgYVCqxgtYw29btbWrvv809fQovruftox-yTBFZ6oMB8g9UVq8YizJANz7TdHJulxdqSjw4mo5OQbz-0xod1KpxNmkPnM93akBxOCfkz4RGaqlwjOaBTVCP0lwJN20ZwyVrJN1NXJK1L_SN5zBOaKa_3G3EIWXL6hzK7sgHRFrMMJtn3XZBm7xf3OUDe-1UN3owJ6aKKQPGlnjUKDuQfeUpgQSfoGFCgSug8rHFz8ZVbQ6ihTeTjFpFdwBij0OW_hI_ETXFNboHGA_QDlvvuz-9uSMXBTvS9FEaNjV4S9IFUj7Qvk2idBgdvM9lthTEYZ9LQAEo_Q8TJPggI86WAidJ2fuH9v69QLyC9To%2Fl34%253Ahttps%253A%252F%252Fgroups.google.com%252Fd%252Foptoute&data=02%7C01%7Candreas.davour.external%40veoneer.com%7C5b82d7132cc7412a8db308d6b9f452eb%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900856361413049&sdata=EWCprRUB8KlONuW1PaUfIYWADeJrUxo8fWjxwvSHic4%3D&reserved=0>.

***************************************************************
Consider the environment before printing this message.

To read the Company's Information and Confidentiality Notice, follow this link:
http://www.veoneer.com/en/important-information-and-confidentiality-notice
***************************************************************

-- 
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/AM0PR04MB6324FCF1D528088E9FB9A20DBD2C0%40AM0PR04MB6324.eurprd04.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to