无法在OpenShift上创建nginx应用程序

无法在OpenShift上创建nginx应用程序,openshift,Openshift,我正在尝试将nginx应用程序添加到我的Openshift 4.1项目中。ImageStream在openshift命名空间中可用,如下所示: image-registry.openshift-image-registry.svc:5000/openshift/nginx 当我使用以下内容创建应用程序时: oc new-app nginx 创建的Pod处于CrashLoopBackOff中。从日志中我可以看到: This is a S2I rhel base image: To use it


我正在尝试将nginx应用程序添加到我的Openshift 4.1项目中。ImageStream在openshift命名空间中可用,如下所示:

image-registry.openshift-image-registry.svc:5000/openshift/nginx
当我使用以下内容创建应用程序时:

oc new-app nginx
创建的Pod处于CrashLoopBackOff中。从日志中我可以看到:

This is a S2I rhel base image: To use it, install S2I: https://github.com/openshift/source-to-image Sample invocation: s2i build https://github.com/sclorg/nginx-container.git --context-dir=1.12/test/test-app/ rhscl/nginx-112-rhel7 nginx-sample-app You can then run the resulting image via: docker run -p 8080:8080 nginx-sample-app
我不清楚。我不能使用“oc new app”创建应用程序吗?或者我是否遗漏了任何环境变量?
感谢

nginx
是一个“S2I”容器(从源代码到图像),它需要一个包含nginx配置的Git存储库并运行它。您可以通过运行
ocnewappnginx来测试这一点~https://github.com/sclorg/nginx-ex
使用说明文件:感谢您的帮助!