π 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! π
Top comments (0)