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

Openshift - S2I - Pull failed - Requested access to the resource is denied

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

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

为此我有:

  1. 使用 UI
  2. 创建了一个 kubernetes.io/ssh-auth 用于提取源代码的秘密
  3. 创建了一个 kubernetes.io/dockerconfigjsonsecret(称为 quayio)用于从 quay.io
  4. 中提取图像
  5. 将注册表密码链接到构建器和默认服务帐户
oc secret link builder quayio --for=mount,pull
oc secret link default quayio --for=mount,pull
  1. 创建应用程序
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

有谁知道为什么会这样?

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

这里是正确的 oc 命令:

oc new-app --name=my-liberty-app base-image:latest~GITHUB_REPO_PLACEHOLDER#master --context-dir=app --source-secret=oc-liberty-github