使用OpenShift 3.1自带的Dockerregistry创build应用程序

我有我自己的dockerregistry安全与自签名证书。 在其他服务器上,我可以在registry中login并从中取出/推送图像。 所以这似乎工作正常。

但是当我想使用OpenShift从图像创build一个应用程序时,它看起来并不起作用:

oc new-app ec2-xxx:5000/test/image1 error: can't look up Docker image "ec2-xx/test/image1": Internal error occurred: Get https://ec2-xxx:5000/v2/: x509: certificate signed by unknown authority error: no match for "ec2-xxx:5000/test/image1" 

可能是什么问题? 我能够在registry中login,并拉出图像手册。

尝试添加“–insecure-registry”到new-app命令

oc new-app ec2-xxx:5000 / test / image1 –insecure-registry