为什么图像流docker存储库与Openshift注册表IP不匹配?

时间:2018-10-06 14:05:40

标签: openshift

我遇到了以下问题,并且您发现Openshift上的注册表已启动,我可以从该注册表中推送或提取图像,但是当我| oc new-app'image stream'|时,我发现了docker pull来自另一个ip的图像,如下所示,因此导致

错误:ImagePullBackOff

[root@yangyang ~]# oc get svc |grep registry
docker-registry    172.30.214.64    <none>        5000/TCP                  2h

[root@yangyang ~]# docker push 172.30.214.64:5000/openshift/mybank-tomcat- 
ryyyy:latest

The push refers to a repository [172.30.214.64:5000/openshift/mybank- 
tomcat-ryyyy]
fa6077374aa0: Mounted from openshift/mybank-tomcat-ry 
2eda9150fd94: Mounted from openshift/mybank-tomcat-ry 
4b9367441797: Mounted from openshift/mybank-tomcat-ry 
b43708ebead1: Mounted from openshift/mybank-tomcat-ry 
f3a3749a49fd: Mounted from openshift/mybank-tomcat-ry 
00fc55ade1b8: Mounted from openshift/mybank-tomcat-ry 
034f354793a4: Mounted from openshift/mybank-tomcat-ry 
a8d68e0ce4e3: Mounted from openshift/mybank-tomcat-ry 
e0caf225fa20: Mounted from openshift/mybank-tomcat-ry 
da22ca4fb8f3: Mounted from openshift/mybank-tomcat-ry 
2eb1c9bfc5ea: Mounted from openshift/mybank-tomcat-ry 
0b703c74a09c: Mounted from openshift/mybank-tomcat-ry 
b28ef0b6fef8: Mounted from openshift/mybank-tomcat-ry 
latest: digest: 
sha256:a719692b2e5e31080a0df923850f8c8b74e42433b4f1aefed8dbcf954095cf2b 
size: 3047

[root@yangyang ~]# docker pull 172.30.214.64:5000/openshift/mybank-tomcat- 
ryyyy
Using default tag: latest
Trying to pull repository 172.30.214.64:5000/openshift/mybank-tomcat-ryyyy 
... 
latest: Pulling from 172.30.214.64:5000/openshift/mybank-tomcat-ryyyy
Digest: 
sha256:a719692b2e5e31080a0df923850f8c8b74e42433b4f1aefed8dbcf954095cf2b
Status: Image is up to date for 172.30.214.64:5000/openshift/mybank-tomcat- 
ryyyy:latest
  • 所以我查询部署日志,发现部署者从172.30.31.111:5000而不是172.30.214.64:5000提取图像,图像流配置如下,并且您也可以找到流docker repo朝向172.30.31.111: 5000

拉取图片“ 172.30.31.111:5000/openshift/mybank-tomcat-ry@sha256:a719692b2e5e31080a0df923850f8c8b74e42433b4f1aefed8dbcf954095cf2b”

apiVersion:image.openshift.io/v1 种类:ImageStream 元数据:   creationTimestamp:'2018-10-06T13:19:36Z'   代数:1   名称:mybank-tomcat-ryyyy   命名空间:openshift   resourceVersion:'58597'   selfLink:>-     /apis/image.openshift.io/v1/namespaces/openshift/imagestreams/mybank-tomcat-ryyyyy   uid:7880cc7b-c96a-11e8-b11a-000c297f7147 规格:   lookupPolicy:     本地:false 状态:   dockerImageRepository:'172.30.31.111:5000/openshift/mybank-tomcat-ryyyyy'   标签:     -项目:         -创建:'2018-10-06T13:19:36Z'           dockerImageReference:>-             172.30.31.111:5000/openshift/mybank-tomcat-ryyyyy@sha256:a719692b2e5e31080a0df923850f8c8b74e42433b4f1aefed8dbcf954095cf2b           代数:1           图片:>-             sha256:a719692b2e5e31080a0df923850f8c8b74e42433b4f1aefed8dbcf954095cf2b       标记:最新

  • 能给我一些建议吗?这个问题阻止了我的部署

0 个答案:

没有答案