gpt4 book ai didi

windows - 如何将容器推送到 Google Container Registry(无法创建存储库)

转载 作者:可可西里 更新时间:2023-11-01 14:42:31 24 4
gpt4 key购买 nike

编辑:我只是将此归咎于平台不一致。我现在已经放弃推送到 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

最佳答案

first image push requires admin rights为项目。我在尝试为团队项目将新容器推送到 GCR 时遇到了同样的问题,我可以通过更新我的权限来解决这个问题。

您可能还想看看 docker-credential-gcr .希望对您有所帮助。

关于windows - 如何将容器推送到 Google Container Registry(无法创建存储库),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38286158/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com