Public | Automated Build

Last pushed: 2 years ago
Short Description
Jenkins with docker to run a job using sibling container. No privileged required.
Full Description

Jenkins with docker inside

Follow jpetazzo to run a job using sibling docker container. No privileged required.

Note that this docker version must match your host's docker version.
Run to setup the correct version.

Quick Start

Start Container

docker run -d -p 808:8080 -p 50000:50000 -u 1025 -v /home/jenkins/data:/var/jenkins_home -v /home/jenkins/backup:/backup -v /var/run/docker.sock:/var/run/docker.sock dockins

Run job inside docker

Use docker command in your job script, for example:

docker run --rm -it hello-world

And yes, you have to add jenkins user(1025) to docker group.

Docker Pull Command
Source Repository