gpt4 book ai didi

reactjs - 未知 : Service 'containerregistry.googleapis.com' is not enabled for consumer 'project:next'

转载 作者:行者123 更新时间:2023-12-05 02:41:24 25 4
gpt4 key购买 nike

我已经对我的 Next.js 应用程序进行了 docker 化,并试图将其部署到谷歌云,但是在将 docker 镜像推送到注册表时,我遇到了这个错误。

unknown: Service 'containerregistry.googleapis.com' is not enabled for consumer 'project:next'

我已经为所有可能的项目启用了这个 API,但它一直在重试。

我使用的命令是

gcloud builds submit --tag gcr.io/next/helloworld --project next-317511

最佳答案

如@John Hanley 和@Yogesh 的评论所述。我将总结一个可能的故障排除方法,您可以遵循这些方法来解决您的问题:

  1. 检查 Billing 是否为 enabled对于我尝试拥有容器的特定项目。
  2. 确保您的主机名、项目 ID、图像名称和标签或摘要拼写正确,如 documentation 中所述.
  3. 启用 API 链接 here启用容器注册表 API 并查看您是否收到针对特定项目的成功消息(已启用容器注册表 API。)
  4. 如果仍然无法正常工作,请禁用 API 并重新启用它。
  5. 使用此命令删除图像并重试。

gcloud container images delete [image] --force-delete-tags

  1. 作为额外信息,请查看 Granting IAM permissions为了了解如何管理 Cloud Storage 存储桶中的权限。您需要拥有存储管理员角色的权限。此外,QuickStart容器注册表有助于将镜像推送和拉取到容器注册表。

关于reactjs - 未知 : Service 'containerregistry.googleapis.com' is not enabled for consumer 'project:next' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68139665/

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