这篇文章上次修改于 1860 天前,可能其部分内容已经发生变化,如有疑问可询问作者。 安装: ``` docker plugin install rexray/s3fs \ > S3FS_OPTIONS="allow_other,use_path_request_style,nonempty,url=http://" \ > S3FS_ENDPOINT="http://" \ > S3FS_ACCESSKEY="" \ > S3FS_SECRETKEY="" \ > S3FS_REGION="us-east-1" ``` 创建volume: ``` docker volume create --driver rexray/s3fs test ``` 查看volume: ``` DRIVER VOLUME NAME rexray/s3fs:latest test ``` 在docker-compose.yml中使用: ``` ...... volumes: test: driver: rexray/s3fs ``` 参考: - https://rexray.readthedocs.io/en/stable/user-guide/schedulers/docker/plug-ins/aws/#simple-storage-service - https://gist.github.com/khoanguyen96/59d054e32ec6e717e62644d04e709c77
没有评论