S3rver 是一个轻量的 S3 服务,能将文件系统映射成 S3 协议接口供归档服务进行管理。
注意:
我们禁用以下操作:
注意:
我们禁用以下操作:
# 获取源码
cd s3rver
npm install
node bin/s3rver.js
npm test
docker build -t thtfcloud/s3rver:3.4.0 .
配置文件(JSON 格式):
当前配置文件只支持设置访问 S3 接口的 Access Key 和 Secret Key。
{
"secrets": {
"YOUR_ACCESS_KEY": "YOUR_SECRET_KEY"
}
}
可以写一个 shell 脚本,假设需要归档的文件夹目录路径在 /custom_data。
# filename: start_s3rver.sh
docker run -d \
-p 4568:4568 \
--name s3rver \
-v /your/config/file:/opt/s3rver/config.json \
-v /custom_data:/data/custom_data \
thtfcloud/s3rver:3.4.0 # 根据具体镜像名称决定
需要注意以下几点:
/opt/s3rver/config.json 目录,其余位置均不生效;/data/your_bucket_name 目录下面的子目录;启动 Docker 镜像
bash ./start_s3rver.sh
停止 Docker 镜像
docker stop s3rver
Content type
Image
Digest
Size
331.5 MB
Last updated
almost 6 years ago
docker pull thtfcloud/s3rver