Skip to content

minorhacks/gcsfuse_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcsfuse Driver for Docker

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 gcsfuse processes to buckets; if trying to mount a subdir of the same bucket, multiple mounts would use the same gcsfuse process, which might cause its caching to thrash with enough load.
  • Enough logging/monitoring to aid debugging in a production setting

Usage

TODO: This section is a work-in-progress.

  1. Build and run gcsfuse_docker:

    go build ./cmd/gcsfuse_docker
    sudo ./gcsfuse_docker --v=1 --alsologtostderr
    
  2. 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/bash
    

    TODO: Clarify the parameters in the mount string

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages