【发布时间】:2016-11-12 04:10:14
【问题描述】:
编辑:我只是将此归咎于平台不一致。我现在已经放弃推送到 Google Cloud Container Registry,而是创建了一个 Ubuntu 虚拟机来代替它。由于前面所述的原因,我也投票结束了这个问题,而且这可能首先应该在服务器故障上被问到。感谢大家的帮助!
运行 $ 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
【问题讨论】:
-
我假设您已经通过控制台或
gsutil acl get gs://us.artifacts.kubernetes-test-1367.appspot.com或类似方式检查了权限? -
@Idg 给了我这个:
BucketNotFoundException: 404 gs://us.artifacts.kubernetes-test-1367.appspot.com bucket does not exist. -
是的,如果没有您的请求,我们将不会创建存储桶。
标签: windows docker kubernetes google-cloud-platform google-container-registry