Google 云 运行 / 安装 Google 存储桶

Google Cloud Run / Mounting Google Storage Bucket

从 Google Cloud 运行 docker 注册表关联容器中,当我尝试装载 Google 存储桶时,以下是我收到的内容。显然,如果没有特权 docker 执行,这是预期的,据我调查,"Google Cloud Run" 实例并不意味着支持特权容器执行,如 Google Compute Engine。

但我仍然想问是否有人对此有任何其他了解,有没有其他方法可以通过 Google 运行 容器安装存储桶?

Opening GCS connection... Opening bucket... Mounting file system... daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: Mount: mount: running fusermount: exit status 1

stderr:

fusermount: fuse device not found, try 'modprobe fuse' first

将此作为社区 Wiki 发布,因为它基于@JohnHanley 和@SuperEye 的评论:

根据您提到的:

My docker images are not web services.

如果是这种情况,您将无法使用云 运行 来完成您正在尝试做的事情。 Cloud 运行 是一个 HTTP Request/Response 系统。您的容器必须响应 HTTP 请求,否则将被终止。

此外,对于您的其他评论:

Google Compute Engine cannot run docker images from Container Registry

这是一个错误的假设。 Compute Engine 支持 Container Registry。

总而言之,对于将存储桶安装为文件系统的最终目标,云 运行 不支持该功能。另一种方法是使用 App Engine Flex。