将S3存储桶添加为Docker卷 [英] Adding s3 bucket as docker volume

查看:341
本文介绍了将S3存储桶添加为Docker卷的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在内部数据中心中有一个spring boot应用程序,该应用程序处理主机上特定文件夹中的文件.

I have one spring boot application which is in our internal data center, which process files from a specific folder on the host.

我们希望将其部署到aws,并希望使用s3存储桶上传文件进行处理.

we wanted to deploy this to aws and wanted to use s3 bucket to upload files for processing.

有什么方法可以将s3存储桶空间添加为docker卷?

is there any way we can add s3 bucket space as docker volume?

推荐答案

UPD:请参见此答案的底部.

UPD: See at the bottom of this answer.

其他答案错误地说AWS S3 is an object store and you can not mount it as volume to docker.这是不正确的. AWS S3具有第三方FUSE驱动程序,可将其作为本地文件系统挂载并像处理文件一样对对象进行操作.

Other answers mistakenly say that AWS S3 is an object store and you can not mount it as volume to docker. Which is not correct. AWS S3 has a 3rd party FUSE driver, which allows it to be mounted as local filesystem and operate on objects as if those were files.

但是,似乎还没有提供此FUSE驱动程序作为Docker的存储插件.

However it does not seem this FUSE driver has been made available as storage plugin for Docker just yet.

编辑:好,我必须在发布此消息几分钟后纠正自己.实际上,Docker有一个基于FUSE的驱动程序,可从AWS S3装入卷.参见 REX-ray

well, i have to correct myself after just a couple of minutes posting this. There in fact is a FUSE based driver for Docker to get volume mounted from AWS S3. See REX-ray and also here for possible configuration issue.

这篇关于将S3存储桶添加为Docker卷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆