JackMix32
JackMix32

Reputation: 13

How to connect jenkins to docker?

I have one jenkins server. There I cannot install docker. So the question is what is the correct way of integrating jenkins with a docker server? Whats the fastest easiest and most convenient way to integrate it?

1.Through a jenkins node with docker installed there

2.Through ssh? And if - how would the configuration look?

3.Only through installed docker on the main jenkins server

4.Other?

Upvotes: 0

Views: 979

Answers (1)

eran meiri
eran meiri

Reputation: 1518

that depends on the version of Docker engine you are about to install and the jobs you want to sue it for ( pipeline , freestyle )

basically if your docker engine is no greater then version 1.11 the best way is to use Docker Plugin from Jenkins if you want to simulate containers as slaves.

you can also use workflow docker plugin and even ssh as you said.

it all depends on what you want to achieve from your docker usage

Upvotes: 1

Related Questions