Kubernetes:无法创建存储库 [英] Kubernetes: Unable to create repository

查看:133
本文介绍了Kubernetes:无法创建存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注 Kubernete的入门指南。一切进展顺利,直到我跑步



$ gcloud docker push gcr.io/<PROJECT ID> / hello-node:v1



(哪里好,我的项目id)。由于某种原因,Kubernetes无法推送到注册表。这是我得到的:

 警告:--email已被弃用,它将很快被删除。看到用法。 
登录成功
警告:--email已被弃用,不久将被删除。看到用法。
登录成功
警告:--email已被弃用,不久将被删除。看到用法。
登录成功
警告:--email已被弃用,不久将被删除。看到用法。
登录成功
警告:--email已被弃用,不久将被删除。看到用法。
登录成功
警告:--email已被弃用,不久将被删除。看到用法。
登录成功
警告:--email已被弃用,不久将被删除。看到用法。
登录成功
推送是指存储库[gcr.io/kubernetes-poc-1320/hello-node]
18465c0e312f:准备
5f70bf18a086:准备
9f7afc4ce40e :准备
828b3885b7b1:准备
5dce5ebb917f:准备
8befcf623ce4:等待
3d5a262d6929:等待
6eb35183d3b8:等待
被拒绝:无法创建存储库,请检查您是否有访问权限。

任何关于我可能做错的想法?注意我已经跑了 $ gcloud init ,所以我已经登录。



提前感谢!

解决方案

编辑:这对几个月前对我有用。新版本的Kubernetes可能没有这个问题,或者这个解决方案可能无法解决它:)



好的,经过这么多小时的努力,我终于设法把它推到通过将标签从图像:version 符号更改为 image / version ,像这样: / p>

gcloud docker push gcr.io/<PROJECT ID> / hello-node / v1

$在阅读了来自Kubernetes文档的另一个指南后,b
$ b

https://cloud.google.com/container-registry/docs/pushing#pushing_to_the_registry



希望这有帮助!


I'm following Kubernete's getting started guide. Everything went smoothly until I ran

$ gcloud docker push gcr.io/<PROJECT ID>/hello-node:v1

(Where is, well, my project id). For some reason, Kubernetes is not able to push to the registry. This is what I get:

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.

Any ideas on what I might be doing wrong? Note that I have run. $ gcloud init, so I've logged in.

Thanks in advance!

解决方案

Edit: This worked for me months ago. New versions of Kubernetes might not have this problem, or this solution might not solve it :)

Ok, after struggling for hours with this, I finally managed to push it to th grc.io registry by changing my tag from a image:version notation to image/version, like this:

gcloud docker push gcr.io/<PROJECT ID>/hello-node/v1

after reading another guide from Kubernetes' documentation: https://cloud.google.com/container-registry/docs/pushing#pushing_to_the_registry

Hope this helps!

这篇关于Kubernetes:无法创建存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆