Jenkins local setup using docker.

preview_player
Показать описание
Jenkins Docker setup

Jenkins – an open source automation server that enables developers around the world to
reliably build, test, and deploy their software.

official link

pull the image
$ docker pull jenkins/jenkins:lts-jdk11

To run the container use below command
$ docker run -p 8080:8080 -p 50000:50000 -name jenkins-local -d jenkins/jenkins:lts-jdk11

If we want to create volume then using the below command

$ docker run -p 8080:8080 -p 50000:50000 --name jenkins-local -d -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk11

To complete setup needs to copy the initial admin password from logs

to check logs

$ docker logs -f jenkins-local

Reference document:-

Blog
Medium Publication
Рекомендации по теме