我正在跟进Kubernetes 入门指南 http://kubernetes.io/docs/hellonode/。一切都很顺利,直到我跑步
$ gcloud docker push gcr.io/<PROJECT ID>/hello-node:v1
(我的项目 ID 在哪里)。由于某种原因,Kubernetes 无法推送到注册表。这就是我得到的:
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
Warning: '--email' is deprecated, it will be removed soon. See usage.
Login Succeeded
The push refers to a repository [gcr.io/kubernetes-poc-1320/hello-node]
18465c0e312f: Preparing
5f70bf18a086: Preparing
9f7afc4ce40e: Preparing
828b3885b7b1: Preparing
5dce5ebb917f: Preparing
8befcf623ce4: Waiting
3d5a262d6929: Waiting
6eb35183d3b8: Waiting
denied: Unable to create the repository, please check that you have access to do so.
关于我可能做错了什么有什么想法吗?请注意,我已经跑了。$ gcloud init
,所以我已经登录了。
提前致谢!
这在我的案例中解决了这个问题:
简洁版本:
Press Enable billing
in the Container Engine
屏幕中的https://console.cloud.google.com
.
长版:
就我而言,由于在谷歌云平台控制台中设置计费问题,我收到了错误。
尽管我输入了所有信用卡信息和我的屏幕Container Engine
谷歌云平台控制台中的屏幕显示Container Engine is getting ready. This may take a minute or more.
,在我按下之前它不起作用Enable billing
在同一屏幕上。然后gcloud docker push
命令终于起作用了。
奇怪的是后来回国后Container Engine
屏幕,它向我展示Container Engine is getting ready. This may take a minute or more.
和按钮Enable billing
再次..一定是控制台中的错误。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)