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.
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.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
DevOps Cloud Academy
Exploring industry DevOps practices and technical expertise.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
