I am not able to mount a specific folder inside the google storage bucket
On OS X, this program allows you to mount buckets using the mount command. (On Linux, only root can do this.)
mount -t gcsfuse -o rw,user my-bucket /path/to/mount/point
On both OS X and Linux, you can also add entries to your /etc/fstab
file like the following:
my-bucket /mount/point gcsfuse rw,noauto,user
Can somebody help me?
my-bucket:foldername /mount/point gcsfuse rw,noauto,user
This doesn't work for me
To mount the GCP bucket inside the container, run the container in privileged mode. For a container to start the deployment the file should contain required configuration with a Google Cloud Storage bucket mounted in a given path.
In the Google Cloud console, go to the Cloud Storage Buckets page. Navigate to the bucket. Click on Create folder to create an empty new folder, or Upload folder to upload an existing folder.
Mounting a specific directory within a bucket isn't supported for use with mount
and fstab
, but if you run the gcsfuse
command directly you can do this with the flag --only-dir
:
gcsfuse --only-dir foldername/ my-bucket /mount/point
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With