Install Jenkins on Windows with Docker
Q: What is Jenkins?
Ans:
Jenkins is a free open source automation server. It supports continuous integration and distribution by automating the parts of software development related to building, testing, and deploying. It's a server-side system that works in servlet containers like Apache Tomcat.
In this article, we'll guide you step by step how to Install Jenkins on Windows with Docker.
Docker Tutorial :
- Install Docker On Windows
- Docker Hello World Example
- Install Prometheus using Docker
- Install Grafana using Docker
- Install RabbitMQ using Docker
- Install Jenkins on Windows with Docker
Before we begin, we must first install Docker on our computer.
- After installing Docker, use the following command to get the most recent stable Jenkins image:
- It will get installed as given below:
- Now run below command to start the docker.
- Go to http://localhost:8080/ in your browser, it'll show unlock Jenkins page.
- Enter the Admin password generated by the Jenkins from the steps 3 and click on Continue.
- Click on Install Suggested Plugins
-
Jenkins will start installing all the all dependent plugins.
- Create your own admin credential by providing username, password etc.
- Provide your own Jenkins URL for absolute link to access resources.
- Jenkins is READY TO USE!
- If you click on Start using Jenkins, It'll show you Jenkins Dashboard Page.
docker pull jenkins/jenkins:lts
docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts
The -p flag corresponds to the port number, with the former 8080 referring to the port exposed to the host system and the latter 8080 referring to the port used by the docker container. All incoming requests will be sent from the host machine's 8080 port to the container's 8080 port.