Install Jenkins on Docker

Learn how to install Jenkins on Docker

Install Jenkins on Docker

Prerequisite:

Verify Docker is already installed and running on your system.

    docker version

To Install Docker download the Docker Desktop on Windows and follow the instructions here.

Installation Steps:

1. Create a bridge network in Docker using the following command:

2. Create the following volumes to share the Docker client TLS certificates needed to connect to the Docker daemon and persist the Jenkins data using the following commands:

3. In order to execute Docker commands inside Jenkins nodes, download and run the docker:dind Docker image using the following command:

4) Download the jenkinsci/blueocean image and run it as a container in Docker using the following command:

Post Installation Steps:

1. Browse to http://localhost:8080 (or whichever port you configured for Jenkins when installing it) and wait until the Unlock Jenkins page appears.

2. From the Jenkins console log output, copy the automatically-generated alphanumeric password (between the 2 sets of asterisks).

3. On the Unlock Jenkins page, paste this password into the Administrator password field and click Continue.

4. After unlocking Jenkins, the Customize Jenkins page appears. Select Install suggested plugins


5. After plugins are install Create First Admin User page appears. Enter details and click on Save button.

6. Instance Configuration page appears. If you don't want to change Jenkins URL then click on Save and Finish button.

7. Jenkins is ready page appears. Click on Start using Jenkins button.

8. Jenkins Dashboard page is displayed.

Bijan Patel
Full Stack Test Automation Expert | Selenium Framework Developer | Certified Tosca Automation Specialist | Postman | DevOps | AWS | IC Agile Certified | Trainer | Youtuber | Blogger|

Launch your GraphyLaunch your Graphy
100K+ creators trust Graphy to teach online
𝕏
QASCRIPT 2024 Privacy policy Terms of use Contact us Refund policy