Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding s3 bucket as docker volume

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

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

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

like image 660
satyam.kudikala Avatar asked Oct 11 '18 16:10

satyam.kudikala


1 Answers

UPD: See at the bottom of this answer.

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.

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

Edit: 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.

like image 96
Alexey Kamenskiy Avatar answered Sep 30 '22 22:09

Alexey Kamenskiy