DEV Community

shubham thakre
shubham thakre

Posted on

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

Top comments (0)