DEV Community

sh3hz
sh3hz

Posted on

How to run Jenkins in Windows

jenkins-docker-windows-iconsJenkins 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:

  1. 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

  2. Replace C:\path\to\your\jenkins_home with the local path where you want Jenkins to store its data.

  3. Once the Jenkins container is running, open a web browser and navigate to http://localhost:8080.

  4. 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)