首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift部署中获取OpenShift映像错误

无法在registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift部署中获取OpenShift映像错误
EN

Stack Overflow用户
提问于 2019-03-26 21:53:35
回答 1查看 1K关注 0票数 0

我在AWS上设置了一个OpenShift原点(OKD)集群。詹金斯被用于CICD管道部署。基于OpenShift文档,我试图使用源到图像(S2I)来使用redhat-openjdk-18/openjdk18-openshift映像将我的Java源代码转换成图像。我使用了以下命令

创建新的构建

代码语言:javascript
复制
$ oc new-build --binary=true --name=bookstore --image-stream=openjdk18-openshift
--> Found image 24d98bd (7 days old) in image stream "cicd/openjdk18-openshift" under tag "latest" for "openjdk18-openshift"

    Java Applications
    -----------------
    Platform for building and running plain Java applications (fat-jar and flat classpath)

    Tags: builder, java

    * A source build using binary input will be created
      * The resulting image will be pushed to image stream "bookstore:latest"
      * A binary build was created, use 'start-build --from-dir' to trigger a new build

--> Creating resources with label build=bookstore ...
    imagestream "bookstore" created
    buildconf

启动构建

代码语言:javascript
复制
$ oc start-build bookstore --from-dir=./ocp --follow
Uploading directory "ocp" as binary input for the build ...
build "bookstore-1" started
Receiving source from STDIN as archive ...
pulling image error : open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory
error: build error: unable to get registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift@sha256:38dab2c3f60ade6857cc2a592184c964d3a51e2d3b5ef07def4b8ad4215d2bbf

如上所示,我得到了registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift构建错误:无法在运行开始构建命令时获得错误。

EN

回答 1

Stack Overflow用户

发布于 2019-03-28 17:13:25

谢谢格雷厄姆的意见。我能够通过在所有节点(主节点和工作节点)上创建空文件来解决这个问题。

代码语言:javascript
复制
$ sudo vi /etc/rhsm/ca/redhat-uep.pem 
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55366741

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档