【发布时间】:2021-10-15 00:16:12
【问题描述】:
我正在尝试在受限网络中install Openshift Container Platform (OCP)。但是,我一直在努力完成先决条件步骤,我必须创建一个镜像注册表来存储this instruction 之后的数据。
我创建了带有自签名证书授权和设置变量的 docker 注册表,如图所示。当我使用 OC CLI 运行以下命令时出现错误:
sudo oc image mirror -a ${LOCAL_SECRET_JSON} --from-dir=${REMOVABLE_MEDIA_PATH}/mirror "file://openshift/release:${OCP_RELEASE}*" ${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}
错误:
error: unable to connect to 192.168.100.215:5000/repo: Get "https://192.168.100.215:5000/v2/": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "192.168.100.215")
我认为 OC 不信任我的证书,但是当我尝试添加 --certificate-authorty=/certs/domain.crt(我的自签名证书)时,仍然显示相同的错误起来。
有没有办法解决这个问题,非常感谢!!
ps:我是 Redhat Openshift 的新手
【问题讨论】:
标签: openssl openshift x509 docker-registry self-signed-certificate