编辑:我只是将这归咎于平台不一致。我现在已经放弃推送到Google Cloud Container Registry,而是在执行该操作的地方创建了Ubuntu VM。由于前面提到的原因,我也投票决定也要结束这个问题,并且同样应该首先在Server Fault上提出这个问题。感谢大家的帮助!
运行$ 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的副本:无法创建存储库,但是我尝试了他的解决方案,但并没有帮助我。我试着追加: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
我仍然无法从本地计算机上推送docker映像,但是使用我的帐户授权计算实例并从那里推送映像是可行的。如果遇到此问题,建议您(自己)创建一个Compute Engine实例,授权一个gcloud auth
可以推送容器的帐户,然后从那里推送。我的源代码放在Git存储库中,可以从中获取代码。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句