Sign inSign up

martinjohn/jenkins-with-docker

By martinjohn

•Updated over 8 years ago

Adds docker to jenkins

Image
1

162

martinjohn/jenkins-with-docker repository overview

⁠jenkins-with-docker

Adds docker client to jenkins/jenkins:lts to allow it to build docker containers. Need to share /var/run/docker.sock from the host.

My host is running Ubuntu, so that seemed to create the docker group as 117 but debian seemed to create it as 999, so I have to change the group id to match the host as well as add the jenkins user to the group

So you need to run it with something like this

docker run \
   -d \
   --restart=unless-stopped \
   -p 8080:8080 \
   -p 50000:50000 \
   -v /var/run/docker.sock:/var/run/docker.sock \
   martinjohn/jenkins-with-docker

Tag summary

Content type

Image

Digest

Size

491.7 MB

Last updated

over 8 years ago

docker pull martinjohn/jenkins-with-docker