【发布时间】:2016-05-22 09:59:33
【问题描述】:
我正在 RHEL Atomic 主机上尝试 OO。我按照本指南 https://docs.openshift.org/latest/getting_started/administrators.html
将 OO master 转为容器将外壳附加到主容器后,我无法部署应用程序。
# oc new-app openshift/deployment-example
error: can't look up Docker image "openshift/deployment-example": Internal error occurred: Get https://registry-1.docker.io/v2/: net/htt p: request canceled while waiting for connection error: no match for "openshift/deployment-example"
The 'oc new-app' command will match arguments to the following types:
1. Images tagged into image streams in the current project or the 'openshift' project
- if you don't specify a tag, we'll add ':latest'
2. Images in the Docker Hub, on remote registries, or on the local Docker engine
3. Templates in the current project or the 'openshift' project
4. Git repository URLs or local paths that point to Git repositories
--allow-missing-images can be used to point to an image that does not exist yet.
See 'oc new-app -h' for examples.
主机需要代理才能访问 Internet。我已经在 /etc/sysconfig/docker 中配置了代理,这就是我可以在同一个地方提取原始图像的方式。
我已经尝试为 master 和 node 设置代理,很幸运 https://docs.openshift.org/latest/install_config/http_proxies.html
【问题讨论】:
-
这可能是因为您需要在主进程上设置代理设置才能访问这些图像。
标签: openshift-origin