This repo implements a Docker driver for gcsfuse. There are many like it, but this one is mine.
This plugin focuses on:
- Facilitating the creation of many volumes that use (different subdirs of) the
same GCS bucket. Some existing Docker
drivers
seem to map
gcsfuseprocesses to buckets; if trying to mount a subdir of the same bucket, multiple mounts would use the samegcsfuseprocess, which might cause its caching to thrash with enough load. - Enough logging/monitoring to aid debugging in a production setting
TODO: This section is a work-in-progress.
-
Build and run
gcsfuse_docker:go build ./cmd/gcsfuse_docker sudo ./gcsfuse_docker --v=1 --alsologtostderr -
Test a mount with a Docker container:
docker run \ -it \ --mount "type=volume,src=foobar,dst=/gcsfuse_test,volume-driver=gcsfuse,volume-opt=opt1=foo,volume-opt=opt2=bar" \ ubuntu \ /bin/bashTODO: Clarify the parameters in the mount string