What is the docker command to run jenkins container in windows

docker, docker-for-windows, jenkins, linux-containers

Solution

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`

Problem

What is the correct `docker run ...` command to run jenkins container. - What are the required ports? - How to mount volume D:\jenkins folder to jenkins job configuration path? I'm using linux containers on windows 10.

Original source

Related problems