Step-by-Step Guide: Installing Jenkins on Docker
shubham thakre
Posted on April 23, 2024
๐ 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
Posted on April 23, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.