Generated based on https://blog.nestybox.com/2019/09/29/jenkins.html
1.4K
Built with below dockerfile
FROM jenkins/jenkins
# Docker install
USER root
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN apt-key fingerprint 0EBFCD88
RUN add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
RUN apt-get update && apt-get install -y docker-ce-cli
USER jenkins
Use below options to support docker-in-docker build via Jenkins job
$ docker run --rm -d --group-add $(stat -c '%g' /var/run/docker.sock) -p 8080:8080 -p 50000:50000 -v ~/jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -P nanishin/jenkins-docker
Volume mounted ~/jenkins_home directory always can be used for Jenkins backup&restore.
Content type
Image
Digest
Size
425.3 MB
Last updated
over 6 years ago
docker pull nanishin/jenkins-docker