Trying to mount Google Filestore share in GAE flexible runtime container

141 views
Skip to first unread message

Tony Day

unread,
Jan 31, 2019, 7:51:33 PM1/31/19
to Google App Engine

Hi

I would like to mount a Google Filestore share so that I can write files to it from my app running in a GAE Flexible docker container.

As a crude experiment I have SSHed into the GAE host instance and manually followed the steps outlined here to mount the share in the docker container.
This works (sort of) but only if I manually run the container with the appropriate privilege (for example docker run --rm -it --cap-add sys_admin <image> /bin/bash).

Is it possible to configure GAE Flexible to run the gaeapp container with specific properties (for example --cap-add sys_admin) ?

Alternatively can anybody suggest a better way to mount the Filestore share on the gaeapp container.

Many thanks

Tony Day

unread,
Feb 6, 2019, 4:23:00 PM2/6/19
to Google App Engine
Hi everybody

Gentle bump on this question please :-)
Any suggestions/advice would gratefully accepted.
Let me know if I need to supply any more info.

Thanks

Aref Amiri (Cloud Platform Support)

unread,
Feb 18, 2019, 1:32:55 PM2/18/19
to Google App Engine
Hi Tony,

This can be done in Custom Runtimes, as it allows you to customize your Dockerfile and the freedom to add the commands as you desire. You just have to make sure that the components you specify are compatible and configured properly to deliver the performance.

Rui Albuquerque

unread,
Sep 27, 2019, 10:55:32 AM9/27/19
to Google App Engine
Hello looks like GAE doesn't allow to configure cap-add .... any help ?

George (Cloud Platform Support)

unread,
Oct 1, 2019, 8:23:08 AM10/1/19
to Google App Engine
Hello Rui, 

This appears to be a different question, worth opening a different thread in Groups. Do you refer to App Engine Standard, or Flexible? 

GAE offers a managed environment, which restricts some privileges and does not allow access to local file-systems, except /temp. In this context, lack of support for --cap-add: Add Linux capabilities should come as no surprise. 
Reply all
Reply to author
Forward
0 new messages