我正在尝试OpenShift原点,我无法创建应用程序

时间:2016-02-11 14:49:15

标签: openshift-origin

我在RHEL Atomic Host上尝试OO。我按照本指南https://docs.openshift.org/latest/getting_started/administrators.html

将OO master作为容器旋转

将shell附加到主容器后,我无法部署应用程序。

# 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

1 个答案:

答案 0 :(得分:0)

您的代理可能正在终止连接。您可以通过创建内部注册表进行测试,将图像推送到该注册表然后使用 “oc new-app your.internal.registry / openshift / deployment-example”