# docker-ssh-slave **Repository Path**: jack_zang/docker-ssh-slave ## Basic Information - **Project Name**: docker-ssh-slave - **Description**: Jenkins SSH slave Docker image - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-12-10 - **Last Updated**: 2022-06-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Jenkins SSH slave Docker image [`jenkins/ssh-slave`](https://hub.docker.com/r/jenkins/ssh-slave/) A [Jenkins](https://jenkins-ci.org) slave using SSH to establish connection. See [Jenkins Distributed builds](https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds) for more info. ## Running To run a Docker container ```bash docker run jenkins/ssh-slave "" ``` 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](https://wiki.jenkins-ci.org/display/JENKINS/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= Don't put quotes around the public key. You should be all set.