Open MarkEdmondson1234 opened 2 years ago
running the Docker in --privileged mode would help, but that seems to be only if I need to access the file system on the parent VM
I think this assumption is wrong. Privileged mode is to allow the docker container to perform privileged actions, like the FUSE mount that we're asking gcsfuse
to do for us.
I had the same error as you and adding --privileged
fixed the problem. According to this comment we can give lesser permissions to the container and things still work:
--cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined
...and this works for me too.
Hi, I wondered if you could help with what seems the final step to working with gcsfuse within a Docker container on GCE.
I've installed gcsfuse in the Docker container successfully, and can access it from within the RStudio terminal running in that Docker container, but get the error below when trying to link the user's file system to a bucket:
I'm not sure what the error means. I've read that it may be user access and running the Docker in --privileged mode would help, but that seems to be only if I need to access the file system on the parent VM. I'm happy to keep everything within the Docker container, using the Cloud Storage bucket to keep state inbetween varying Docker containers running version of RStudio. (tracking my progress in https://github.com/cloudyr/googleComputeEngineR/issues/109 )
For reference the Docker file I am using is below, which builds successfully