jenkins-setup-docker First execute the docker-setup.sh docker-compose up -d Configure Jenkins Cluster Create the Jenkins master node Create the slave node. Execute ssh-keygen -t rsa -b 4096 -m PEM command in the master node. Copy the content of id_rsa.pub file and paste it in the authorized_key file of slave node. Copy the content of the id_rsa file from master node. Got to the Jenkins UI > Manage Jenkins -> Manage Credentials. Create a new Credentials of Kind "SSH Username and private Key" Then go the Manage Jenkins -> Manage Node. Create a new node.