我的Dockerfile包含以下内容:
FROM tomcat:jre8
ADD https://nexus-instance/nexus/service/local/repositories/central/content/org/apache/activemq/activemq-core/5.7.0/activemq-core-5.7.0.jar $CATALINA_HOME/lib/
我想将位于Nexus中的jar添加到图像
当我构建图像时,它最终得到:
Get https://nexus-instance/nexus/service/local/repositories/central/content/org/apache/activemq/activemq-core/5.7.0/activemq-core-5.7.0.jar:
x509: certificate signed by unknown authority
我尝试将本地证书添加到 ubuntu 商店,并可以在 / etc / ssl / certs
中找到证书应该考虑哪些事情?
安装在ubuntu主机上的docker引擎是否会使用证书 在系统范围内受到ubuntu的信任吗?
Docker是否以不同的方式处理它?</ p>
答案 0 :(得分:0)
毕竟,我错过了重启docker引擎:
sudo systemctl restart docker
重新启动后,该服务将获取新添加的证书