Skip to content

Instantly share code, notes, and snippets.

@cocoastorm
Last active March 8, 2024 09:23
Show Gist options
  • Star 26 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save cocoastorm/59d054e32ec6e717e62644d04e709c77 to your computer and use it in GitHub Desktop.
Save cocoastorm/59d054e32ec6e717e62644d04e709c77 to your computer and use it in GitHub Desktop.
rexray/s3fs Docker Plugin Install with Minio

Getting Started

Make sure Docker is installed!

Get your Minio endpoint url, accesskey, and secretkey ready!

Install Docker Plugin

docker plugin install rexray/s3fs \
  S3FS_OPTIONS="allow_other,use_path_request_style,nonempty,url=http://<minio_endpoint_url>" \
  S3FS_ENDPOINT="http://<minio_endpoint_url>" \
  S3FS_ACCESSKEY="<minio_accesskey>" \
  S3FS_SECRETKEY="<minio_secretkey>"

Checking if it works ;O

docker volume ls

There should be volume names listed similarly to this:

DRIVER              VOLUME_NAME
rexray/s3fs         some_volume_1
rexray/s3fs         some_volume_2

Additional Notes

This should ideally work with other providers as well... just not Minio. Just make sure to change the endpoint in S3FS_ENDPOINT and inside S3FS_OPTIONS as well!

@DanielBodnar
Copy link

Hey @khoaNguyen96, looks like you're missing a \ at the end of the S3FS_OPTIONS line. Should be

docker plugin install rexray/s3fs \
  S3FS_OPTIONS="allow_other,use_path_request_style,nonempty,url=http://<minio_endpoint_url>" \
  S3FS_ENDPOINT="http://<minio_endpoint_url>" \
  S3FS_ACCESSKEY="<minio_accesskey>" \
  S3FS_SECRETKEY="<minio_secretkey>"

I was spinning my wheels trying to figure out why the other ENV variables weren't getting applied ;)

@cocoastorm
Copy link
Author

@DanielBodnar hey sorry about that! fixed.

@felixfong227
Copy link

Really useful stuff, thanks a lot pal 👍 😄

@psanders
Copy link

@khoaNguyen96 is a livesaver!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment