我在3 Centos 7 vm上离线运行的Openshift Origin群集。它工作正常,我是一个注册表,我按这样推送我的图像:
docker login -u <username> -e <any_email_address> -p <token_value> <registry_ip>:<port>
登录成功,然后:
oc tag <image-id> <docker-registry-IP>:<port>/<project-name>/<image>
所以,对于nginx例如:
oc tag 49011ce3b713 172.30.222.111:5000/test/nginx
然后我将其推送到内部注册表:
docker push 172.30.222.111:5000/test/nginx
最后:
oc new-app nginx --name="nginx"
使用nginx,一切正常,现在是我的问题:
我实际上想把Zookeeper放在上面,所以:我做的步骤与上面相同,我也安装&#34; jboss / base-jdk:7&#34;这是Zookeeper的依赖,问题是:
docker push 172.30.222.111:5000/test/jboss/base-jdk:7
给予:
[root@master 994089]# docker push 172.30.222.111:5000/test/jboss/base-jdk:7
The push refers to a repository [172.30.222.111:5000/test/jboss/base-jdk]
c4c6a9114a05: Layer already exists
3bf2c105669b: Layer already exists
85c6e373d858: Layer already exists
dc1e2dcdc7b6: Layer already exists
Received unexpected HTTP status: 500 Internal Server Error
问题似乎是&#34; /&#34;这里jboss ** / ** base-jdk:7
我也试图像这样推动:
docker push 172.30.222.111:5000/test/base-jdk:7
这是有效的,但Zookeeper正在寻找&#34; jboss / base-jdk:7&#34;,而不只是&#34; base-jdk:7&#34;
最后,我在尝试此命令时阻止了这里:oc new-app zookeeper --name="zookeeper" --loglevel=8 --insecure-registry --allow-missing-images
I0628 14:31:54.009713 53407 dockerimagelookup.go:92] checking local Docker daemon for "jboss/base-jdk:7"
I0628 14:31:54.030546 53407 dockerimagelookup.go:380] partial match on "172.30.222.111:5000/test/base-jdk:7" with 0.375000
I0628 14:31:54.030571 53407 dockerimagelookup.go:346] exact match on "jboss/base-jdk:7"
I0628 14:31:54.030578 53407 dockerimagelookup.go:107] Found local docker image match "172.30.222.111:5000/test/base-jdk:7" with score 0.375000
I0628 14:31:54.030589 53407 dockerimagelookup.go:107] Found local docker image match "jboss/base-jdk:7" with score 0.000000
I0628 14:31:54.032799 53407 componentresolvers.go:59] Error from resolver: [can't look up Docker image "jboss/base-jdk:7": Internal error occurred: Get http://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.253.158.90:53: no such host]
I0628 14:31:54.032831 53407 dockerimagelookup.go:169] Added missing image match for jboss/base-jdk:7
F0628 14:31:54.032882 53407 helpers.go:110] error: can't look up Docker image "jboss/base-jdk:7": Internal error occurred: Get http://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.253.158.90:53: no such host
我们可以看到找到了172.30.222.111:5000/test/base-jdk:7,但它并不完全是命令所需要的,所以它没有使用它......
所以,如果你有任何想法如何解决这个问题! :)
答案 0 :(得分:0)
通过升级到Openshift 1.5.1解决,之前是1.3.1。