加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows – 如何将容器推送到Google容器注册表(无法创建存储库)

发布时间:2020-12-14 05:45:10 所属栏目:Windows 来源:网络整理
导读:编辑:我只是将此归咎于平台不一致.我现在已经放弃了推向Google Cloud Container Registry,并创建了一个Ubuntu VM,而我正在这样做.由于前面提到的原因,我也投票决定关闭这个问题,并且因为首先应该在服务器故障上提出这个问题.谢谢大家的帮助! 运行$gcloud d
编辑:我只是将此归咎于平台不一致.我现在已经放弃了推向Google Cloud Container Registry,并创建了一个Ubuntu VM,而我正在这样做.由于前面提到的原因,我也投票决定关闭这个问题,并且因为首先应该在服务器故障上提出这个问题.谢谢大家的帮助!

运行$gcloud docker push gcr.io/kubernetes-test-1367/myapp导致:

The push refers to a repository [gcr.io/kubernetes-test-1367/myapp]
595e622f9b8f: Preparing
219bf89d98c1: Preparing
53cad0e0f952: Preparing
765e7b2efe23: Preparing
5f2f91b41de9: Preparing
ec0200a19d76: Preparing
338cb8e0e9ed: Preparing
d1c800db26c7: Preparing
42755cf4ee95: Preparing
ec0200a19d76: Waiting
338cb8e0e9ed: Waiting
d1c800db26c7: Waiting
42755cf4ee95: Waiting
denied: Unable to create the repository,please check that you have access to do so.

$gcloud init导致:

Welcome! This command will take you through the configuration of gcloud.

Settings from your current configuration [default] are:
[core]
account = <my_email>@gmail.com
disable_usage_reporting = True
project = kubernetes-test-1367
Your active configuration is: [default]

注意:这是Kubernetes: Unable to create repository的副本,但我尝试了他的解决方案并没有帮助我.我尝试追加:v1,/ v1,并使用us.gcr.io

编辑:附加信息

$gcloud --version
Google Cloud SDK 116.0.0

bq 2.0.24
bq-win 2.0.18
core 2016.06.24
core-win 2016.02.05
gcloud
gsutil 4.19
gsutil-win 4.16
kubectl
kubectl-windows-x86_64 1.2.4
windows-ssh-tools 2016.05.13

?

$gcloud components update

All components are up to date.

?

$docker -v
Docker version 1.12.0-rc3,build 91e29e8,experimental

解决方法

您使用的是什么版本的gcloud和Docker?

查看您的请求,似乎Docker客户端没有附加凭据,这可以解释访问拒绝.

我建议运行gcloud组件更新,看看问题是否重现.如果仍然如此,请随时通过google.com与我们联系,以便我们帮助您调试问题并解决您的问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读