我想使用oc
工具导入图像(例如jenkins),但是我的Openshift 4.2群集出现x509证书错误。
oc import-image jenkins --confirm
error: tag latest failed: Internal error occurred: Get https://registry-1.docker.io/v2/: x509: certificate is valid for *.apps.ocp4.mydomain.com, not registry-1.docker.io
imagestream.image.openshift.io/jenkins imported with errors
Name: jenkins
Namespace: default
Created: 25 hours ago
Labels: <none>
Annotations: openshift.io/image.dockerRepositoryCheck=2019-11-06T17:14:03Z
Image Repository: image-registry.openshift-image-registry.svc:5000/default/jenkins
Image Lookup: local=false
Unique Images: 0
Tags: 1
latest
tagged from jenkins
! error: Import failed (InternalError): Internal error occurred: Get https://registry-1.docker.io/v2/: x509: certificate is valid for *.apps.ocp4.mydomain.com, not registry-1.docker.io
25 hours ago
即使启用了不安全选项,该命令也不起作用。
oc import-image jenkins --confirm --insecure=true
error: tag latest failed: Internal error occurred: error retrieving repository: server returned 503
imagestream.image.openshift.io/jenkins imported with errors
Name: jenkins
Namespace: default
Created: 25 hours ago
Labels: <none>
Annotations: openshift.io/image.dockerRepositoryCheck=2019-11-06T17:14:03Z
Image Repository: image-registry.openshift-image-registry.svc:5000/default/jenkins
Image Lookup: local=false
Unique Images: 0
Tags: 1
latest
tagged from jenkins
! error: Import failed (InternalError): Internal error occurred: Get https://registry-1.docker.io/v2/: x509: certificate is valid for *.apps.ocp4.mydomain.com, not registry-1.docker.io
25 hours ago
任何想法如何解决该问题?