I really don’t understand how on earth it could have been spawned on my master, as I have specifically pointed out the remote dockerhost as my only configured cloud! But, you might be right.
I have indeed intended to use labels to allocate nodes for jobs. I will try to use that instead of the image name, as suggested. Maybe it will at least give more indication of what works and not. Much appreciated! /andreas From: jenkinsci-users@googlegroups.com <jenkinsci-users@googlegroups.com> On Behalf Of Zero Uno Sent: den 5 april 2019 15:48 To: 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%2F1QpiOPSj_oeifudUNsdJloa1wwQD0-76IHdVXnXYPoR-_OgKrtWBCUwIm5pxnUm-C6D2t79vmMOm1qh4rC0Ph-OjP7uXElsAke237_fg_gceqowzSo8lsj5EC8Kg3-Ncm97_CpTbx44i9g7Qt9yHpvwQZz-sh4CC3l_9AYKVoGVdIr4ugMzH-fp9gqCXGhwRyO5g1qSAsLD1ydKSeS8lPZzyRqRtpKadB4ZkxRec4-xT-E_4McFN2sNtjzPzGJTZEKTCfrzVCreRlW_F9bULxowRxSXT6O0z6cpSr4dca6fHIYjPp5_R14XtxtaoXrMr5bQLOF_YhEwep6RgSxIy0dibgCa9NTUqhOc6oBwCs9B72-znauiAWXYNgrC9sxxUNkWcThXkgH_jtnDgotobKOAZCmumguGgGgn2N-gChIf6j0nDMpsPh_Ch1L84vmpr9YOFcXF-CTWMY3neH4N8kTA%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%252Foptout122%253Ahttps%253A%252F%252Fgroups.google.com%252Fd%252Fmsgid%252Fjenkinsci-users%252FCAJeoO5rDyx1sp7hi_GuY%25252BHnJxq-D_ma4Zb%25253DnN9GTLyFzKJVgrQ%252540mail.gmail.come&data=02%7C01%7Candreas.davour.external%40veoneer.com%7Ca191f3fca4164682204708d6b9cdc54f%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900690761186594&sdata=8M9G8yGNIsEn0m6MLpE2vkcXV1rMuSrps5QNCi8XAB0%3D&reserved=0> Il giorno mer 3 apr 2019 alle ore 16:53 'Andreas Davour' via Jenkins Users <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> 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%7Ca191f3fca4164682204708d6b9cdc54f%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900690761186594&sdata=0KmP9siY1aRbA2OYXRyEb4yXunW0mksVJQbynqHVeH8%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%2F1N6hfy7neK6uqSVizkAFvPGC0vfRIcrIocbp22pszwn2mDUVYaVc7YbpgLeIAw2Lvioc2umD4RR9lHAaKp4gZ5lLvcIzPvFjZ8AxdhCtiQIyJ_8541-j1I4N6IXaE3FRafJRBxYeNVRRtCQFGwnhKe08EnTOCCtsKZJ0ZxJWqOyB65_yYsohBK7bUJ-vcBYP-BagtgpOgVnKmr6JgINob3mPgMg-3TM3cPsmZPtxfOzzkwxYXQX2aBIWjCEntwREZLEZ9TZs6AHyAZwBtmiQhRZuBZRk82PsPB_gA7tUouM_X3VLejOm7zpVV7kUvz4EbANFsKadBFt5JzsRX0HWCUgyaWNEjuSRDxDrfaWx_8R2bq9nbwIKpaW0ct7IyZ77RGpvkKsw6lVYvyHLSQDTv_DZedTlWfQBBlj8eRF3CJVWX8ultjSJJrC3qB0E_xMocOi6rMYGEAmxuceaqfUFzHQ%2Fl51%253Amailto%253Ajenkinsci-users%252Bunsubscribe%2540googlegroups.come&data=02%7C01%7Candreas.davour.external%40veoneer.com%7Ca191f3fca4164682204708d6b9cdc54f%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900690761186594&sdata=Wv04WUp1cDWqSxO00zhhihcbgdN4Jjl09LJWerFm3DY%3D&reserved=0>. To view this discussion on the web visit http://secure-web.cisco.com/1aQJBWZLIR7YgyHZsA4NA-D-4PpKyEQDvkbquXJD-mr_wkdPyVhYJf0stc1fTPAb4Bo84rayEktmkxc4SJJP01zQFZabJA32slEM7FQVSeu72tcNfD-BRfPKIcvOtjzMRoZyqmoCrc2p0dRYnOQrbK6RWn4Zn7Lirik16ZrNKwc_LBTnOWDESGDtxVgZTA79NerYfOWdxzjry9jsvfoTUJqZ24UqQGpNyYjfTpejbX1AgRvco2yGU4q9he66NYMSr11Txe2UbDQ71b15w9KQmDCpIyIjgsYFSkFLDwAErvEKcZm_LJgmmAVrft5BiaVOKsDJkU8eYzT2iSjnUgUr4sfpJ2sIpoy4gpLF8CBLTviXKIgU11xmz_8jSLr9I2rqmiZJl5t3i2F_Jf-nh5s0Bt-e53S0UYzCiKHD36ZlSqbU-yWt1MHI_kDmQfSBhsUGgwCPOPjKfLJRAQK_fJMwZpA/l122%3Ahttps%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fjenkinsci-users%2FCAJeoO5rDyx1sp7hi_GuY%252BHnJxq-D_ma4Zb%253DnN9GTLyFzKJVgrQ%2540mail.gmail.come<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsecure-web.cisco.com%2F1aQJBWZLIR7YgyHZsA4NA-D-4PpKyEQDvkbquXJD-mr_wkdPyVhYJf0stc1fTPAb4Bo84rayEktmkxc4SJJP01zQFZabJA32slEM7FQVSeu72tcNfD-BRfPKIcvOtjzMRoZyqmoCrc2p0dRYnOQrbK6RWn4Zn7Lirik16ZrNKwc_LBTnOWDESGDtxVgZTA79NerYfOWdxzjry9jsvfoTUJqZ24UqQGpNyYjfTpejbX1AgRvco2yGU4q9he66NYMSr11Txe2UbDQ71b15w9KQmDCpIyIjgsYFSkFLDwAErvEKcZm_LJgmmAVrft5BiaVOKsDJkU8eYzT2iSjnUgUr4sfpJ2sIpoy4gpLF8CBLTviXKIgU11xmz_8jSLr9I2rqmiZJl5t3i2F_Jf-nh5s0Bt-e53S0UYzCiKHD36ZlSqbU-yWt1MHI_kDmQfSBhsUGgwCPOPjKfLJRAQK_fJMwZpA%2Fl122%253Ahttps%253A%252F%252Fgroups.google.com%252Fd%252Fmsgid%252Fjenkinsci-users%252FCAJeoO5rDyx1sp7hi_GuY%25252BHnJxq-D_ma4Zb%25253DnN9GTLyFzKJVgrQ%252540mail.gmail.come%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candreas.davour.external%40veoneer.com%7Ca191f3fca4164682204708d6b9cdc54f%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900690761196599&sdata=l7ZiXHFEZvdGKa0UdEUiwi8HljW7f8qDbASZOPdNw00%3D&reserved=0>. For more options, visit http://secure-web.cisco.com/1R3CxWAsywVhNsmwJkZReGxoMSWsqFLKbYCPkFOe_2nqDbhSrf0hNQxVKcGuG0e9q9NICSCHIEIjs5WYJLnnBSysA5aGh1rWEB_SdNCHwVZ8rhGPJLgibz0OLGQSi9u3xhbPrvm4ifw2sHddoO4KvviR8cvH6ck4nluzr_JAvp1mjxhfaRWqxePjqHxILa72Nk2bnnPoWyfXs1fUvT_j7MTYMU6Hg8AueaqRGma4V1J9tVaCgMw0Wv6k7fHhYIIMpsoJlgxiPWVxZuK6XNWZKtaD8OT0nQ99V46mpC_ac9rPYW1uxyhl35zXB9QnpFEGAQ60C90X0FipwDbM-13qsmFWvtUCMR7O-MPkJerqvFFOfSUZO1t-MLEwYN1c3b3ejvesyoPkEis4cXLXZGIKYaMJXkCeODS6O9Qb2dFcGQ6Dn_bV2OtyFcpjEjqB9Hmj27FG8QjNsbxVDHBTYyNmvLQ/l34%3Ahttps%3A%2F%2Fgroups.google.com%2Fd%2Foptoute<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsecure-web.cisco.com%2F1R3CxWAsywVhNsmwJkZReGxoMSWsqFLKbYCPkFOe_2nqDbhSrf0hNQxVKcGuG0e9q9NICSCHIEIjs5WYJLnnBSysA5aGh1rWEB_SdNCHwVZ8rhGPJLgibz0OLGQSi9u3xhbPrvm4ifw2sHddoO4KvviR8cvH6ck4nluzr_JAvp1mjxhfaRWqxePjqHxILa72Nk2bnnPoWyfXs1fUvT_j7MTYMU6Hg8AueaqRGma4V1J9tVaCgMw0Wv6k7fHhYIIMpsoJlgxiPWVxZuK6XNWZKtaD8OT0nQ99V46mpC_ac9rPYW1uxyhl35zXB9QnpFEGAQ60C90X0FipwDbM-13qsmFWvtUCMR7O-MPkJerqvFFOfSUZO1t-MLEwYN1c3b3ejvesyoPkEis4cXLXZGIKYaMJXkCeODS6O9Qb2dFcGQ6Dn_bV2OtyFcpjEjqB9Hmj27FG8QjNsbxVDHBTYyNmvLQ%2Fl34%253Ahttps%253A%252F%252Fgroups.google.com%252Fd%252Foptoute&data=02%7C01%7Candreas.davour.external%40veoneer.com%7Ca191f3fca4164682204708d6b9cdc54f%7C8112232996bb41cc905365e30c689cd5%7C0%7C0%7C636900690761206609&sdata=3rcdTpP%2FAdHBgxmXLZhNwLkgGid1UgAPfFi87PtpmvA%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/AM0PR04MB63240FD40B2B850817746818BD2C0%40AM0PR04MB6324.eurprd04.prod.outlook.com. For more options, visit https://groups.google.com/d/optout.