Reputation: 356
I run docker container with Jenkins master. I run docker container with Jenkins slave (slave image) and exposed port 8082:8080.
I created docker network to make containers see each other and it works (ping works).
I installed Docker Plugin on Jenkins master. I checked IP address of the slave container and tried to use it in the master's configuration, but master cannot connect to slave:
I think I'm doing something wrong. Any ideas what else should I do?
Upvotes: 1
Views: 1852
Reputation: 791
First check your docker daemon listening on your DockerURL and then try Testconnection
sudo dockerd
check API listening on
or provide your certs
path to credential section.
certs path usually will be %userprofile%/.docker
Upvotes: 1
Reputation: 356
I solved my problem.
Here is nice tutorial about setting up master in docker container and slaves aslo in docker containers. It doesn't use Docker Plugin.
Upvotes: 0