london_utku
london_utku

Reputation: 1312

Google Cloud Run / Mounting Google Storage Bucket

From a Google Cloud Run docker registry associated container, when I try to mount a Google Storage Bucket, the following is what I receive. Obviously without having a privileged docker execution this is expected, and as far as I have investigated, "Google Cloud Run" instances are not meant to support privileged container execution like Google Compute Engine.

Yet I am still asking if anyone has any other knowledge about this, is there any other way to mount a bucket via Google Run container ?

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

Upvotes: 4

Views: 2788

Answers (1)

Rafael Lemos
Rafael Lemos

Reputation: 5819

Posting this as a Community Wiki as it's based on the comments of @JohnHanley and @SuperEye:

Based on what you mentioned:

My docker images are not web services.

If this is the case, you cannot use Cloud Run for what you are trying to do. Cloud Run is an HTTP Request/Response system. Your container must respond to HTTP requests, otherwise it will be terminated.

Also, for your other comment:

Google Compute Engine cannot run docker images from Container Registry

That is an incorrect assumption. Compute Engine supports Container Registry.

In conclusion, for your final goal of mounting a bucket as a file system, Cloud Run does not support that ability. An alternative is to use App Engine Flex.

Upvotes: 4

Related Questions