Official Jenkins image with Docker socket
This image was created to be a small layer on top of jenkins:alpine such that it could have access to the host's docker cli (via docker.sock). This image will run using the jenkins user, however it introduces a docker group and sets ownership of the docker.sock to it, additionally it adds the jenkins user to the list of sudoers.
alpine
(jareddlc/jenkins-with-docker-socket/alpine/Dockerfile)latest
(jareddlc/jenkins-with-docker-socket/latest/Dockerfile)lts
(jareddlc/jenkins-with-docker-socket/lts/Dockerfile)lts-alpine
((jareddlc/jenkins-with-docker-socket/lts-alpine/Dockerfile)lts-slim
(jareddlc/jenkins-with-docker-socket/lts-slim/Dockerfile)slim
(jareddlc/jenkins-with-docker-socket/slim/Dockerfile)
$ docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 -p 50000:50000 jareddlc/jenkins-with-docker-socket:lts-alpine
For more information and options see official jenkins repo: https://hub.docker.com/_/jenkins/