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

source share