Step-by-Step Guide: Installing Jenkins on Docker

RMAG news

🚀 Excited about DevOps automation? Learn how to set up Jenkins on Docker for seamless CI/CD workflows! 🛠️

Prerequisites :

Before we begin, ensure you have the following prerequisites:

Docker installed on your machine
Basic familiarity with Docker commands
Internet connectivity to pull Docker images

🔹 Step 1: Pull the Jenkins Docker Image
Start by pulling the latest Jenkins LTS image from Docker Hub:

docker pull jenkins/jenkins:lts

🔹 Step 2: Run Jenkins Container
Launch Jenkins as a Docker container with port mappings:

docker run -d -p 8080:8080 -p 50000:50000 –name my-jenkins jenkins/jenkins:lts

🔹 Step 3: Access Jenkins Web UI
Navigate to http://localhost:8080 in your web browser.

🔹 Step 4: Retrieve Initial Admin Password
Retrieve the admin password from the container logs:

docker logs my-jenkins

🔹 Step 5: Complete Jenkins Setup
Follow the setup wizard in the web UI, paste the admin password, and install plugins.

🔹 Step 6: Start Using Jenkins
Begin automating builds, tests, and deployments with Jenkins!

Ready to streamline your development pipeline? Try Jenkins on Docker today! 🌟

DevOps #ContinuousIntegration #ContinuousDelivery #Jenkins #Docker #Automation #CI/CD

Leave a Reply

Your email address will not be published. Required fields are marked *