What is docker command to run jenkins container in windows

What is the correct docker run ... to start the jenkins container.

  • What are the required ports?
  • How to install volume D: \ jenkins in jenkins work configuration folder?

I am using linux containers in windows 10.

+5
source share
1 answer
 docker run -p 8080:8080 -p 50000:50000 -v //D/jenkins:/var/jenkins_home jenkins 

or with : -v D:/jenkins:/var/jenkins_home , as in the example below, but I personally prefer the first approach.

just make sure you check drive D in docker settings to allow installation of D

Use example drive settings

+4
source

Source: https://habr.com/ru/post/1258506/


All Articles