Could you please provide the commands to install gcsfuse in Google Cloud Container Optimized OS (COS) and mount a bucket? Also I'm not sure which would be recommended, doing it directly on OS or on the container.
I came across this command here
docker run --privileged -v /mnt/disks/bucket:/bucket --device /dev/fuse my_gcsfuse /go/bin/gcsfuse -o allow_other <BUCKET> /bucket
Is this the way to install and mount a bucket in Google Cloud Container Optimized OS (COS) at container level?
Here 4 options that you may want to consider:
docker-compose
and follow the installation instructions for gcsfusemy_gcsfuse
(or use the latest official Dockerfile) as a sidecar container. Sidecar and main containers use shared volumesbuilder
base image to copy the gcsfuse executable from - and use the new image to run on COSThe last option has my preference.