提问者:小点点

我正在尝试打开班次原点,我无法创建应用程序


我正在RHEL原子主机上尝试OO。我按照本指南将OO master作为容器旋转https://docs.openshift.org/latest/getting_started/administrators.html

将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.

主机需要代理才能访问互联网。我已经在 /etc/sysconfig/docker 中配置了代理,这就是我可以在同一位置拉取源映像的方式。

我试过用luck https://docs . open shift . org/latest/install _ config/http _ proxy . html设置主节点和节点的代理


共1个答案

匿名用户

这是可能的这是你的代理正在终止连接.你可以测试通过创建一个内部注册表,推映像到那然后使用"oc new-appyour.internal.registry/openshift/deployment-example"