s3fs in OCI

s3fs in OCI

use of Oracle Cloud Object Storage as a docker volume in OCI free tier.

create the bucket and keys

follow OCI Blog

this should lead to 3 variables:

1
2
3
4
#vars
ACCESSSKEY=
SECRETKEY=
S3URL=

create the volume and test the access

1
2
3
4
5
6
7
docker plugin install mochoa/s3fs-volume-plugin-aarch64 --alias s3fs --grant-all-permissions --disable
docker plugin set s3fs AWSACCESSKEYID=$ACCESSKEY
docker plugin set s3fs AWSSECRETACCESSKEY=$SECRETKEY
docker plugin set s3fs DEFAULT_S3FSOPTS="nomultipart,use_path_request_style,url=https://$S3URL"
docker plugin enable s3fs
docker volume create -d s3fs mybucket
docker run -it -v mybucket:/mnt alpine