【问题标题】:Unable to host flask in firebase using cloud run无法使用云运行在 Firebase 中托管烧瓶
【发布时间】:2021-07-28 10:36:52
【问题描述】:

Repeatedly this error comes in

gcloud beta run deploy --image gcr.io/atlas-mania-ybtcga/atlas-mania-ybtcga

我正在尝试使用 firebase cloud run Following this tutorial 托管我的烧瓶 api,但在应用上述命令后我被卡住了,因为即使我已经使用 gcloud init 选择了我的项目,它也无法找到我的项目。

【问题讨论】:

  • 您使用的是旧版本的gcloud?运行gcloud components update进行检查。
  • 您是否构建了您的容器?是否存放在指定位置?
  • 如何知道是否存放在指定位置
  • 获取此链接作为来源:gs://atlas-mania-ybtcga_cloudbuild/source/1620286214.33-a865af8ce76f40bbac4a75e5f238f2cc.tgz
  • 对不起,您能否确认您使用的“--image”标签与您在上一步中使用的“--tag”标签相同(步骤 4,其中指示gcloud builds submit --tag gcr.io/<project-id>/flask-fire 作为要遵循的命令)?

标签: python firebase flask google-cloud-run


【解决方案1】:

@JohnHanley 的假设是正确的,您使用的是旧版本的 gcloud。 gcloud CLI 可能是最新的,但不是测试版。

您的 GCLOUD cli 尝试访问已不存在的 Cloud Run v1alpha1 API。

删除命令中的 beta 关键字或更新 beta GCLOUD 组件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-03
    • 2021-06-17
    • 1970-01-01
    • 1970-01-01
    • 2020-12-12
    • 2022-12-01
    • 1970-01-01
    • 2016-07-12
    相关资源
    最近更新 更多