This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.3.3.4.4. 查看输出但不创建
						要查看运行 new-app 命令的空运行,您可以使用 -o|--output 参数及 yaml 或 json 值。然后,您可以使用输出结果预览创建的对象,或将其重定向到可以编辑的文件。满意之后,您可以使用 oc create 创建 OpenShift Container Platform 对象。
					
						要将 new-app 工件输出到一个文件,请运行以下命令:
					
oc new-app https://github.com/openshift/ruby-hello-world \
    -o yaml > myapp.yaml
$ oc new-app https://github.com/openshift/ruby-hello-world \
    -o yaml > myapp.yaml
编辑该文件:
vi myapp.yaml
$ vi myapp.yaml
通过引用该文件来创建新应用程序:
oc create -f myapp.yaml
$ oc create -f myapp.yaml