Docker Community Forums

Share and learn in the Docker community.

How to setup the docker build slave that will run if there is any build triggered in Jenkins Master (Non-Docker)

docker
#1

I just want to create docker build slave that will reduce that build are being in queue and waiting for next available slave to pick up. I just already have Jenkins Master on linux which is non-dockerized and I just want to create docker build slaves and map it with Master. Is that possible requirement? If its… then how do I map the slaves into Master. I just installed docker plugin on master and enabled tcp connection and tested its success and added docker image details (
bibinwilson/jenkins-slave) and mapped that lable into job and triggered but it always shows offline. And nothing get executed.

How can I solve this issue? any help? is there any standard slave image that can initiate the slave mode and bring back the results to Master?

My project is Java8+maven and docker is running on below version:

arrchana@instance-1:~$ uname -a
Linux gcp_instance-0 3.11.0-1029-gcp #31~16.04.1-Ubuntu SMP Fri Mar 22 13:06:42 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

docker Version:
Docker version 18.09.2, build 6247962