Skip to content

Instantly share code, notes, and snippets.

@nexus166
Last active May 19, 2019 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nexus166/86b4f04a6498d56e04e1b1acb24ddc70 to your computer and use it in GitHub Desktop.
Save nexus166/86b4f04a6498d56e04e1b1acb24ddc70 to your computer and use it in GitHub Desktop.

tldr

docker plugin install rexray/s3fs \
  S3FS_OPTIONS="allow_other,use_path_request_style,nonempty,url=https://s3.my.xyz" \
  S3FS_ENDPOINT="https://s3.my.xyz" \
  3FS_ACCESSKEY="xxx" \
  3FS_SECRETKEY="yyy"
$ sudo apt install s3fs
$ curl -sSL https://dl.bintray.com/emccode/rexray/install | sh

/etc/rexray/config.yml to configure s3fs storage driver.

libstorage:
  service: s3fs
s3fs:
  accessKey: Q3AM3UQ867SPQQA43P2F
  secretKey: zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG
  endpoint: https://play.minio.io:9000  
  region: us-east-1
  disablePathStyle: false 
  options:
  - url=https://play.minio.io:9000
  - use_path_request_style
  - nonempty
sudo rexray volume new testbucket
sudo rexray volume ls
ID                                                            Name                                                          Status    Size
testbucket                                                    testbucket                                                    attached  0
sudo rexray service start
sudo rexray volume mount testbucket
ID          Name        Status    Size  Path
testbucket  testbucket  attached  0     /var/lib/rexray/volumes/testbucket/data
sudo rexray volume unmount
ID          Name        Status     Size
testbucket  testbucket  available  0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment