当我跑的时候
oc import-image centos:7 --confirm true我得到了
The import completed with errors.
Name: centos
Namespace: pd-kube-ci
Created: Less than a second ago
Labels: <none>
Annotations: openshift.io/image.dockerRepositoryCheck=2018-12-27T21:00:26Z
Docker Pull Spec: docker-registry.default.svc:5000/pd-kube-ci/centos
Image Lookup: local=false
Unique Images: 0
Tags: 1
7
tagged from centos:7
! error: Import failed (InternalError): Internal error occurred: Get https://registry-1.docker.io/v2/: proxyconnect tcp: EOF
Less than a second ago
error: tag 7 failed: Internal error occurred: Get https://registry-1.docker.io/v2/: proxyconnect tcp: EOF对于我的生活,我找不到proxyconnect tcp: EOF的来源。在OpenShift/Kubernetes源代码中找不到它。谷歌对此几乎一无所知。
我还验证了可以从每个节点(包括主节点和基础节点)执行docker pull centos操作。只有当openshift试图拉取该图像时才会出现这种情况。
有什么想法吗?
发布于 2018-12-29 00:52:58
事实证明这是我们的openshift_https_proxy ansible变量中的一个错误配置。具体地说,我们有:
openshift_https_proxy=https://proxy.mycompany.com:8443我们应该有一个
openshift_https_proxy=http://proxy.mycompany.com:8443要解决这个问题,我们必须编辑主节点上的/etc/origin/master/master.env和所有节点上的/etc/sysconfig/docker,然后根据Working with HTTP Proxies文档重新启动。
https://stackoverflow.com/questions/53952310
复制相似问题