Operations 2 min read

Setting Up Jenkins with Docker: A Step‑by‑Step Guide

This article explains what Jenkins and pipelines are, then guides you through installing Docker, running a Jenkins container, retrieving the initial admin password, and completing the Jenkins setup via the web interface, including plugin installation and user creation.

DevOps Cloud Academy
DevOps Cloud Academy
DevOps Cloud Academy
Setting Up Jenkins with Docker: A Step‑by‑Step Guide

Jenkins is an automation server that can create jobs to build, test, and deploy applications; pipelines are scripts that define the sequence of steps such as checking out code, testing, building, packaging, creating Docker images, and deploying.

The first step is to install Docker on the host machine and start a Jenkins container with the command:

docker run --name jenkinsci -p 8080:8080 jenkins/jenkins:lts

This command pulls the Jenkins LTS image, runs it, and after initialization the console displays an automatically generated administrator password. The password shown in the logs (and also stored in /var/jenkins_home/secrets/initialAdminPassword ) is:

a3c76c0cc3e541ff94b3670c22995342

Open a browser and navigate to http://localhost:8080/ . Enter the admin password, click “Continue”, and on the next screen choose “Install suggested plugins”. Wait while Jenkins downloads and installs the plugins.

After the plugins are installed, Jenkins prompts you to create an admin user. Fill in the user details, complete the setup, and finally click “Start using Jenkins” to reach the Jenkins dashboard.

DockerCI/CDDevOpspipelineJenkinsSetup
DevOps Cloud Academy
Written by

DevOps Cloud Academy

Exploring industry DevOps practices and technical expertise.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.