Jenkins Setup Using Docker

Jenkins Setup Using DockerWhat is jenkins?

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

What is docker?
Docker is a tool designed to make it easier to create, deploy, and run applications by using

Steps to install Jenkins using docker.

A system with Docker installed. You can download Docker from the official website.
An active internate connection.


  1. Install Docker
    If you haven’t already, install Docker on your system. You can download and
    install Docker from the official website.
  2. Pull the jenkins Docker image
#sudo docker pull jenkins/jenkins:lts
#docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home --name jenkins_container jenkins/jenkins:lts
Jenkins Setup Using Docker

Unlock Jenkins using initial admin password

#docker exec -it jenkins_container cat /var/jenkins_home/secrets/initialAdminPassword
  1. Access the Jenkins Web Interface :
    container is running, you can access the Jenkins web interface by opening a web browser to
    http://localhost:8080 or ip _address:8080

when we try to access it in the browser we need use 8082 portal to access it You will need to unlock Jenkins by retrieving the initial admin password.

Hope you like this blog….
Mahesh Wabale
Latest posts by Mahesh Wabale (see all)

Leave a Comment