Skip to content

w7089/docker_in_jenkins

Repository files navigation

Jenkins with docker client installed and mount docker socket

Demo project showing how to create jenkins container with docker client installed in it

$ docker-compose up -d
Creating network "dockerinjenkins_default" with the default driver
Creating dockerinjenkins_jenkins_1 ... 
Creating dockerinjenkins_jenkins_1 ... done
rok@rok:~/dev/docker_in_jenkins$ docker exec -it dockerinjenkins_jenkins_1 bash

jenkins@d2b79717c6d5:/$ docker version
Client: Docker Engine - Community
 Version:           19.03.6
 ...

Jenkins image is based on image from this project

Read more info about using this image at CI/CD using Jenkins and Docker and at Kubernetes volumes demo

  • Jenkins admin is configured and welcome screen is skipped using groovy init scripts

Pull requests are welcome