Я хотел бы импортировать изображения (например, jenkins) с помощью инструмента oc
, но я получил ошибку сертификата x509 на моем кластере Openshift 4.2.
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
Есть идеи, как решить проблему?