如你所见,我将我最近的图片标记为属于google云注册表:
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
gcr.io/chess-king-council/council-kings latest e82b2f44af48 4 hours ago 1.05GB
<none> <none> 63a6c4d89d29 4 hours ago 1.05GB
<none> <none> b4637ec645fa 4 hours ago 1.05GB
<none> <none> 466bb4fd8026 4 hours ago 332MB
ubuntu 20.04 4e2eef94cd6b 2 weeks ago 73.9MB
ubuntu latest 4e2eef94cd6b 2 weeks ago 73.9MB
python 3.8.2 4f7cd4269fa9 4 months ago 934MB
node 13.12.0-alpine 483343d6c5f5 5 months ago 114MB当我运行该命令时:
docker push gcr.io/chess-king-council/council-kings它给出了这样的信息:
unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication我按照它给出的链接中的步骤作为Docker凭据助手进行了身份验证,但没有任何变化。另外,我以项目所有者的身份登录。为什么谷歌云不让我推送这个Docker镜像?我是不是漏掉了什么明显的东西?
发布于 2020-09-08 04:13:44
当路径中缺少SDK且不一定是权限问题时,可能会发生此错误。检查您的~/.bash_profile中是否有$PATH中SDK的位置,如步骤5中提到的here。
示例:
export PATH="/usr/local/yourfolder/google-cloud-sdk/latest/google-cloud-sdk/bin:$PATH"
https://stackoverflow.com/questions/63746926
复制相似问题