Sign inSign up

evryace/docker-ssh-slave

By evryace

Updated over 7 years ago

A Jenkins slave using SSH to establish connection with Docker cli binary installed

Image
0

1.4K

evryace/docker-ssh-slave repository overview

Jenkins SSH slave Docker image

jenkins/ssh-slave

A Jenkins slave using SSH to establish connection.

See Jenkins Distributed builds for more info.

Running

To run a Docker container

docker run jenkins/ssh-slave "<public key>"

You'll then be able to connect this slave using ssh-slaves-plugin as "jenkins" with the matching private key.

How to use this image with Docker Plugin

To use this image with Docker Plugin, you need to pass the public SSH key using environment variable JENKINS_SLAVE_SSH_PUBKEY and not as a startup argument.

In Environment field of the Docker Template (advanced section), just add:

JENKINS_SLAVE_SSH_PUBKEY=<YOUR PUBLIC SSH KEY HERE>

Don't put quotes around the public key. You should be all set.

Tag summary

Content type

Image

Digest

Size

249.3 MB

Last updated

over 7 years ago

docker pull evryace/docker-ssh-slave