gpt4 book ai didi

google-app-engine - 谷歌云应用引擎部署失败

转载 作者:太空宇宙 更新时间:2023-11-03 15:22:00 25 4
gpt4 key购买 nike

我按照 google cloud console 右侧教程部署 ruby​​ 项目,在克隆演示源代码后尝试使用命令 gcloud app deploy --project fireflywytwyt 进行部署,它抛出以下错误对我来说(省略不必要的日志):

...
8820c09c846d: Image already exists
64fc2a97cff9: Image already exists
43f58141118b: Image already exists
575d6bde5efe: Image already exists
272ffca85019: Image already exists
90a62e26e551: Image already exists
a51047f764d0: Image already exists
2c8496abe349: Image already exists
6e04b82f3d6e: Image already exists
latest: digest: sha256:406115ccfa93d7cef120b2683f75c9f5b3821d8a11b8afbca7781240c293313e size: 72372
DONE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [7] The user fireflywytwyt@appspot.gserviceaccount.com must have permission to read the image at us.gcr.io/fireflywytwyt/appengine/def
ault.20161124t144728:latest

请注意错误:

用户 fireflywytwyt@appspot.gserviceaccount.com 必须有权读取 us.gcr.io/fireflywytwyt/appengine/def 上的图像

我的账户似乎无法访问 docker registry,如何解决?

最佳答案

您需要授予服务用户(在您的情况下 fireflywytwyt@appspot.gserviceaccount.com )编辑角色。为此

  • 在云平台控制台中打开 IAM 和管理页面。

  • 选择您的项目并点击继续。

  • 点击添加成员。
  • 输入服务帐户的电子邮件地址,选择一个编辑者角色并点击添加。

关于google-app-engine - 谷歌云应用引擎部署失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40779815/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com