Jenkins (docker) - adonisv79/bytecommander.com GitHub Wiki

Make sure to mount the 'var/jenkins_home'

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

once it says it is ready, go to localhost:8080 in your browser. You will find jenkins UI which will ask for the temporary password in the volume. since we monted the volume, go to D:\docker-volumes\jenkins_home\secrets and open the 'initialAdminPassword' file to get the password. Now you can start the setup by following the step by step instructions.

Ref: https://hub.docker.com/_/jenkins