Step-by-Step Guide: Installing Jenkins on Docker

shubhthakre

shubham thakre

Posted on April 23, 2024

Step-by-Step Guide: Installing Jenkins on Docker

๐Ÿš€ 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
Enter fullscreen mode Exit fullscreen mode

๐Ÿ”น 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
Enter fullscreen mode Exit fullscreen mode

๐Ÿ”น 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
Enter fullscreen mode Exit fullscreen mode

๐Ÿ”น 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

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
shubhthakre
shubham thakre

Posted on April 23, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

What was your win this week?
weeklyretro What was your win this week?

November 29, 2024

Where GitOps Meets ClickOps
devops Where GitOps Meets ClickOps

November 29, 2024

How to Use KitOps with MLflow
beginners How to Use KitOps with MLflow

November 29, 2024

ยฉ TheLazy.dev

About