Jenkins with SSL over Docker

爷,独闯天下 提交于 2021-02-11 14:13:35

问题


I am trying to set up a Jenkins with SSL over Docker

sudo docker run --name trial  -d -p 443:8443  -p 50003:50000 -v /net/host/fs0/temp:/var/jenkins_home -httpPort=-1 -httpsPort=8443 -httpsKeyStore=/local/home/jenkins_keystore.jks -httpsKeyStorePassword=<password> --restart unless-stopped <ImageID>

The container is created but I do not find the jenkins in my browser with https://< hostname >:443.


回答1:


You have the wrong order in your flags. All application-related flags need to be set after the ImageID and all docker-related flags before that.

sudo docker run --name trial -d -p 443:8443 -p 50003:50000 -v /net/host/fs0/temp:/var/jenkins_home --restart unless-stopped <ImageID> -httpPort=-1 -httpsPort=8443 -httpsKeyStore=/local/home/jenkins_keystore.jks -httpsKeyStorePassword=<password>


来源:https://stackoverflow.com/questions/55645718/jenkins-with-ssl-over-docker

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!