Jenkins Docker Plugin - How to configure to connect to Docker host with TLS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins Docker Plugin - How to configure to connect to Docker host with TLS

Gil-3
Hello All -

On the Docker host, I enable remote API with with the TLS option (i.e. create CA server/client keys to protect the daemon socket as described in https://docs.docker.com/engine/security/https/).  All is well.

Now, my question is, on the Jenkins side, with the Docker plugin, how do I configure this plugin so that it / Jenkins can connect to the Docker host securely with the certificate generated above?  Or better yet, what's the right / best method to configure Jenkins Docker plugin to securely connect to the remote Docker host?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a40b6552-9206-49e2-84a0-e81fc51050ad%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Docker Plugin - How to configure to connect to Docker host with TLS

Liejun Tao
Generate a client certificate which could connect to the Docker host with tls.
In Jenkins, add a credential of "Docker Host Certificate Authentication" type with the client certificate.
Use the credential in Docker plugin. 

On Thu, Mar 26, 2020 at 7:58 AM Gil <[hidden email]> wrote:
Hello All -

On the Docker host, I enable remote API with with the TLS option (i.e. create CA server/client keys to protect the daemon socket as described in https://docs.docker.com/engine/security/https/).  All is well.

Now, my question is, on the Jenkins side, with the Docker plugin, how do I configure this plugin so that it / Jenkins can connect to the Docker host securely with the certificate generated above?  Or better yet, what's the right / best method to configure Jenkins Docker plugin to securely connect to the remote Docker host?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a40b6552-9206-49e2-84a0-e81fc51050ad%40googlegroups.com.


--
Thanks,
Baibai

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMRm5jaL4_EWhpGPc5wrYQAW4S-P0Av95kzsD0oP1tyhJSwSHw%40mail.gmail.com.