Jenkins 2.187 version from the official build image.
pull the repo from official docker Jenkins git hub url. change the JENKINS_VERSION ENV variable to 2.187 and add the sha256 checksum key to JENKINS_SHA variable . build it as docker build --tag jenkins:
run the image as docker run --name myjenkins -p 8080:8080 -v /var/jenkins_home:/var/jenkins_home jenkins
in order to configure jenkins with docker. you have to run your host docker with port 2376 or anyother port.
edit /lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375
then /etc/default/docker
DOCKER_OPTS="-H tcp://0.0.0.0:2375" and restart the docker service systemctl restart docker.
In jenkins ui-> manage jenkins-> configure system-> add to cloud->docker -> docker uri => tcp://:2376 . click test connection. if it works fine, you can see the version details , click save.
Content type
Image
Digest
Size
291.6 MB
Last updated
over 7 years ago
docker pull umak/jenkins:v2.187