Openshift-S2I-拉取失败-请求的对资源的访问被拒绝

问题描述 投票:0回答:1

在我的本地工作站上,我正在使用以下内容:

  • Openshift:4.2.13
  • CRC版本:1.4.0 + d5bb3a3

[我正在尝试使用S2I进程从基础映像和存储在github存储库中的源代码开始,将应用程序部署到本地集群中。

我要做的是:

  1. [创建了用于使用UI提取源代码的kubernetes.io/ssh-auth机密
  2. [创建了一个kubernetes.io/dockerconfigjson秘密(称为quayio)以从quay.io中提取图像>]
  3. 将注册表秘密链接到构建器和默认服务帐户
  4. oc secret link builder quayio --for=mount,pull
    oc secret link default quayio --for=mount,pull
    
  1. 创建应用程序
  2. oc new-app --name=my-liberty-app base-image:1.0~GITHUB_REPO_PLACEHOLDER#master --context-dir=app --source-secret=oc-liberty-github
    

但是当构建开始时,出现此错误:

Cloning "git@GITHUB_REPO_PLACEHOLDER" ...
    Commit: f14d294a3e2e06e01db9034311035af5df9f3036 (App custom scripts)
    Author: user
    Date:   Mon Mar 2 14:30:09 2020 +0100
Caching blobs under "/var/cache/blobs".
Warning: Pull failed, retrying in 5s ...
Warning: Pull failed, retrying in 5s ...
Warning: Pull failed, retrying in 5s ...
error: build error: After retrying 2 times, Pull image still failed due to error: errors:
denied: requested access to the resource is denied
unauthorized: authentication required

有人知道为什么会这样吗?

在我的本地工作站上,我正在使用以下工具:Openshift:4.2.13 CRC版本:1.4.0 + d5bb3a3我正在尝试使用S2I进程从基础开始将应用程序部署到我的本地集群中...

openshift redhat
1个回答
0
投票

我发现了问题。图片流标签错误。

© www.soinside.com 2019 - 2024. All rights reserved.