【发布时间】:2019-08-22 03:03:42
【问题描述】:
我正在尝试将我的 docker 映像推送到 google 容器映像注册表,但收到一条错误消息,提示我没有执行此操作所需的权限。
我已经尝试过 gcloud auth configure-docker 但它对我不起作用。
我首先使用以下方法构建图像: docker build -t gcr.io/trynew/hello-world-image:v1 .
然后我尝试附加标签并推送它: docker push gcr.io/trynew/hello-world-image:v1
这是我的输出:
The push refers to repository [gcr.io/trynew/hello-world-image]
e62774cdb1c2: Preparing
0f6265b750f3: Preparing
f82351274ce3: Preparing
31a16430afc8: Preparing
67298499a3ed: Preparing
62d5f39c8fe4: Waiting
9f8566ee5135: Waiting
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 的 snap 版本。安装普通版本(目前是 Docker 版本 19.03.3,构建 a872fc2f86)后,问题就消失了。
标签: docker docker-image