編輯:我只是要指責這一點在平臺不一致。我已經放棄了現在推送到Google雲容器註冊表的工作,並且已經創建了一個Ubuntu VM,我正在做這件事。我也投票結束了這個問題,出於前面所述的原因,並且也應該首先詢問服務器故障。感謝大家的幫助!如何推送容器到Google容器註冊表(無法創建存儲庫)
運行$ 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'或類似的東西? – ldg
@Idg給我這個:'BucketNotFoundException:404 gs://us.artifacts.kubernetes-test-1367.appspot.com存儲桶不存在.' –
是的,沒有您的要求的信用,我們不會創建桶。 – mattmoor