On 19/05/17 17:52, Alex Domoradov wrote:
> Not sure what do you mean by "By default Jenkins supposes to be able
> to start docker containers on the same host as itself,".
> Because we are using Jenkins with AWS ECS cluster without any
> problems. And our slave nodes are different EC2 instances from master
> node.
I found the solution ;) To receive smart answers one need to ask smart
questions... My approach was not correct so I asked wrong question. I
actually meant docker setup for Pipelines... To prevent any job running
on the master itself, one need to put 0 to the filed 'Number of
executors' in the master node config. And, if the Docker Pipeline plugin
is installed, the agent on the node simply calls local docker and does
not need any additional configuration but to put jenkins user into the
docker group and correct permission to allow jenkins access to docker's
socket.
Thanks anyway!
Cheers,
Kirill