如何在openshift源中创建jbossweb的图像流

时间:2018-07-31 13:25:36

标签: openshift openshift-origin

如何在openshift起源中创建和使用jboss Web服务器的图像流?

link中可用的图像Yaml。我看到它是使用openshift企业版(link)自动构建的。但是为什么不起源呢?

谢谢。

我希望它会在构建过程中将其自身拉出图像,但没有发生。

D:\docker\apps>oc new-build --image-stream=jboss-webserver31-tomcat7-openshift:1.1 --name=newapp --binary=true
warning: Cannot find git. Ensure that it is installed and in your path. Git is required to work with git repositories.
error: unable to locate any images in image streams with name "jboss-webserver31-tomcat7-openshift:1.1"

The 'oc new-build' 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. Git repository URLs or local paths that point to Git repositories

--allow-missing-images can be used to force the use of an image that was not matched

See 'oc new-build -h' for examples.

所以我尝试在webconsole中创建导入yaml,但是yaml出现以下错误。

Failed to process the resource.
Resource is missing kind field.

1 个答案:

答案 0 :(得分:0)

知道了。显然必须登录redhat

oc import-image my-jboss-webserver-3/webserver31-tomcat7-openshift --from=registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat7-openshift --confirm