无法从Google计算引擎实例运行gcloud docker push
当我做gcloud docker push
我得到以下错误。
denied: Unable to create the repository, please check that you have access to do so.
gcloud info
显示在gcloud中configuration的正确的项目名称。
有人可以引导我这个问题? 或build议一个替代scheme。
我试图直接login没有gcloud,login成功,但推送失败
$docker login -e 2983212121577-compute@developer.gserviceaccount.com -u oauth2accesstoken -p "$(gcloud auth print-access-token)" https://gcr.io Flag --email has been deprecated, will be removed in 1.14. Login Succeeded $ docker push gcr.io/project/imagename ... denied: Unable to create the repository, please check that you have access to do so.
$ gcloud –version Google Cloud SDK 147.0.0
$ docker –version Docker版本17.03.0-ce,编译3a232c8
如果你这样做
gcloud docker -- push gcr.io/X/Y
您需要获得写入名为“X”的GCP的权限。 通常,您需要将其作为项目编辑人员添加到该项目中。
在这种情况下,GCR不会抱怨'gcloud info'显示的项目。