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