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.
latest
,alpine
(jareddlc/jenkins-with-docker-socket/Dockerfile)lts-alpine
((jareddlc/jenkins-with-docker-socket/lts-alpine/Dockerfile)2.60.3-alpine
(jareddlc/jenkins-with-docker-socket/2.60.3-alpine/Dockerfile)
$ docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 -p 50000:50000 jareddlc/jenkins-with-docker-socket
For more information and options see official jenkins repo: https://hub.docker.com/_/jenkins/