Public | Automated Build

Last pushed: 6 months ago
Short Description
jenkins-docker-slave
Full Description

anh4n/jenkins-docker-slave

Jenkins Slave running docker, docker-compose and ssh server
This Image is not using docker-in-docker instead the hosts docker daemon is mounted.

Jenkins Configuration

Field Value
Remote FS root /opt/jenkins
Launch method Launch slave agents on Unix machines via SSH

Credentials

Username: root
Password: jenkin

Mounting volumes

If you want to mount directories in a build step e.g.:

docker run --rm -v "$(pwd)":/data busybox ls -l /data

then the jenkins slave Remote FS root directory (/opt/jenkins) must exist on the host too. Otherwise the docker daemom can't find the mounted files.

Example docker-compose.yml file

version: '2'

services:
    slave:
        image: anh4n/jenkins-docker-slave
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
            - /opt/jenkins:/opt/jenkins
Docker Pull Command
Owner
anh4n
Source Repository