And*_*luk 5 windows docker google-cloud-platform kubernetes google-container-registry
编辑:我只是将其归咎于平台不一致。我现在已经放弃推送到 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.
Run Code Online (Sandbox Code Playgroud)
$ 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]
Run Code Online (Sandbox Code Playgroud)
注意:这是Kubernetes: Unable to createrepository的重复,但我尝试了他的解决方案,但它对我没有帮助。我尝试过附加: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
Run Code Online (Sandbox Code Playgroud)
+
$ gcloud components update
All components are up to date.
Run Code Online (Sandbox Code Playgroud)
+
$ docker -v
Docker version 1.12.0-rc3, build 91e29e8, experimental
Run Code Online (Sandbox Code Playgroud)
我仍然无法从本地计算机推送 docker 映像,但使用我的帐户授权计算实例并从那里推送映像是可行的。如果您遇到此问题,我建议您(为您自己)创建一个 Compute Engine 实例,授权一个gcloud auth可以推送容器的帐户,然后从那里进行推送。我的源代码位于 Git 存储库中,我可以从中提取代码来获取代码。
| 归档时间: |
|
| 查看次数: |
4120 次 |
| 最近记录: |