【问题标题】:pull access denied for gcr.iogcr.io 的拉取访问被拒绝
【发布时间】:2020-06-05 17:29:55
【问题描述】:

我正在尝试在我的项目存储库中提取这样的图像,但我不断收到此错误。

我的身份验证没有问题,docker login 工作正常。

$ docker pull gcr.io/[PROJECT-ID]/[IMAGE]:[TAG]

来自守护进程的错误响应:拉取访问被拒绝 gcr.io/[PROJECT-ID]/[IMAGE]:[TAG],存储库不存在或可能 需要'docker login':被拒绝:“0.2.0”的权限被拒绝 请求“/v2/[PROJECT-ID]/[IMAGE]/manifests/[TAG]”。

有什么想法吗?

【问题讨论】:

  • 您是否有机会使用私有集群?如果是这样,来自公共 Docker 中心的pulling images 有一些限制。另一种类似的thread 会很有帮助。
  • @Alexandre 您能否更具体地说明我应该执行哪些命令?
  • 您是否同时使用私有集群并尝试从公共 Docker 中心拉取镜像?如果是,那么它应该是the document,您可以在其中找到这些命令。您也可以查看this document 以获得更多帮助。
  • 您使用的是哪个 Docker 版本?这个错误是在每次拉取时出现还是只在 gcr.io 上出现?

标签: docker ubuntu google-cloud-platform docker-registry


【解决方案1】:

您可以通过执行this command 来使用自己的凭据配置您的 docker 凭据

gcloud auth configure-docker

【讨论】:

  • 它显示了这个:WARNING: Your config file at [...] contains these credential helper entries: { "credHelpers": { "us.gcr.io": "gcloud", "staging-k8s.gcr.io": "gcloud", "asia.gcr.io": "gcloud", "gcr.io": "gcloud", ... } } Adding credentials for all GCR repositories. WARNING: A long list of credential helpers may cause delays running 'docker build'. We recommend passing the registry name to configure only the registry you are using. gcloud credential helpers already registered correctly. 但是我在拉动时仍然有同样的错误
猜你喜欢
  • 2021-05-28
  • 1970-01-01
  • 1970-01-01
  • 2014-08-10
  • 1970-01-01
  • 1970-01-01
  • 2021-03-26
  • 2018-05-31
  • 2021-03-06
相关资源
最近更新 更多