Tag: 坞员登记

为什么我们使用docker-registry?

有人可以解释我“dockerregistry”? 我在OpenShift中面对它,但很难理解目前的情况。

使用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,并拉出图像手册。

在OpenShift的私人registry中创build图像stream

我build立了一个OpenShift Origin 1.1.3集群。 现在我从私人registry中拉出图像。 这个registry是'不安全的'。 它具有自签名证书和凭证以进行身份​​validation。 我能够执行docker login并在我的节点上手动拉取图像。 问题是只有那个节点可以访问图像。 所以,当我缩放我的pod(基于该图像)时,所有副本都将在该特定节点上运行。 其他节点不能拉或使用图像。 所以我想为我的图像创build一个图像stream: oc import-image –insecure=true ec2-xxx:5000/image But: message: you may not have access to the Docker image "ec2-xxx:5000/image" reason: Unauthorized 我读到了创造一个秘密。 我创造了它: oc secrets new-dockercfg mysecret –docker-server=ec2-xxx:5000 –docker-username=*** –docker-password=*** –docker-email=any@mail.com 我该如何将这个秘密添加到我的图像stream? 这是正确的方法吗?