sithumc
sithumc

Reputation: 3404

What is the docker command to run jenkins container in windows

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

  1. What are the required ports?
  2. How to mount volume D:\jenkins folder to jenkins job configuration path?

I'm using linux containers on windows 10.

Upvotes: 6

Views: 3853

Answers (2)

Ahmed Nabil
Ahmed Nabil

Reputation: 18996

UPDATE for new docker-for-windows versions:

Make sure under Docker Settings > Resources > FILE SHARING,
The host path exists in this list, else you should add it.

In your example, you should check D:\jenkins

Upvotes: 0

VladoDemcak
VladoDemcak

Reputation: 5259

docker run -p 8080:8080 -p 50000:50000 -v //D/jenkins:/var/jenkins_home jenkins

or with : -v D:/jenkins:/var/jenkins_home like in example below but i personally prefer first approach.

just make sure in docker settings you have checked disc D to allow mounting D

Share Drives settings example

Upvotes: 5

Related Questions