Openshift-S2I-Pull失败-请求的资源访问被拒绝
在我的本地工作站上,我正在使用以下各项:Openshift-S2I-Pull失败-请求的资源访问被拒绝,openshift,redhat,Openshift,Redhat,在我的本地工作站上,我正在使用以下各项: Openshift:4.2.13 CRC版本:1.4.0+d5bb3a3 我试图使用S2I过程将应用程序部署到本地集群,从基本映像和存储在github存储库中的源代码开始 为此,我必须: 创建了一个kubernetes.io/ssh auth密码,用于使用UI提取源代码 创建了一个kubernetes.io/dockerconfigjson秘密(称为quayio),用于从quay.io中提取图像 将注册表密码链接到生成器和默认服务帐户 创建应用程序
- Openshift:4.2.13
- CRC版本:1.4.0+d5bb3a3
kubernetes.io/ssh auth
密码,用于使用UI提取源代码kubernetes.io/dockerconfigjson
秘密(称为quayio
),用于从quay.io中提取图像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
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 new-app --name=my-liberty-app base-image:latest~GITHUB_REPO_PLACEHOLDER#master --context-dir=app --source-secret=oc-liberty-github