gpt4 book ai didi

google-cloud-platform - 如何将持久存储挂载到 Google Cloud Run?

转载 作者:行者123 更新时间:2023-12-03 23:33:52 27 4
gpt4 key购买 nike

我试图使用 Cloud run 运行 Docker 镜像,并意识到没有添加持久存储的选项。我在 https://cloud.google.com/run/docs/using-gcp-services#connecting_to_services_in_code 中找到了服务列表但所有这些都是通过代码访问的。我希望与持久存储共享卷。有办法解决吗?是因为持久存储可能无法同时在多个实例之间共享吗?是否有替代解决方案?

最佳答案

Cloud Run 是无服务器的:它抽象了所有基础设施管理。
也是一个托管计算平台,可以自动扩展您的 无状态容器。

Filesystem access The filesystem of your container is writable and issubject to the following behavior:

This is an in-memory filesystem, so writing to it uses the containerinstance's memory. Data written to the filesystem does not persistwhen the container instance is stopped.


如果您的应用程序是 ,您可以使用 Google Cloud Storage、Firestore 或 Cloud SQL。有状态 .
3 Great Options for Persistent Storage with Cloud Run
What's the default storage for Google Cloud Run?

关于google-cloud-platform - 如何将持久存储挂载到 Google Cloud Run?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64228967/

27 4 0
文章推荐: c# - 如何在 Xamarin.Forms 中强制使用灯光模式?
文章推荐: list - 输出一个元素我想要的次数
文章推荐: html - 如何使
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com