Jenkins is a popular open-source tool for automating software development processes.
Prerequisites:
A windows system with docker installed.
Steps for Jenkins Docker deployment in Windows:
Open a Command Prompt or PowerShell with administrative privileges and run the following command to pull and run the official Jenkins docker image:
docker run -p 8080:8080 -p 50000:50000 -v C:\path\to\your\jenkins_home:/var/jenkins_home jenkins/jenkins:lts
Replace
C:\path\to\your\jenkins_home
with the local path where you want Jenkins to store its data.Once the Jenkins container is running, open a web browser and navigate to http://localhost:8080.
Retrieve the initial administrator password by running the following command:
docker exec -it <container_id> cat /var/jenkins_home/secrets/initialAdminPassword
Replace with the actual ID or name of your running Jenkins container.
Top comments (0)