Jenkins在Docker上使用SSL [英] Jenkins with SSL over Docker

查看:78
本文介绍了Jenkins在Docker上使用SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Docker建立具有SSL的Jenkins

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>

容器已创建,但在浏览器中找不到 https://<主机名>:443 .

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

推荐答案

您的标志顺序错误.必须在ImageID之后设置所有与应用程序相关的标志,并在此之前设置所有与docker相关的标志.

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>

这篇关于Jenkins在Docker上使用SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆