Last active
March 3, 2024 11:24
-
-
Save btheu/4fbbd198f9d814bc9f25ca9ee6f22597 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install -y fuse | |
sudo mkdir -p /var/lib/docker-plugins/rclone/config | |
sudo mkdir -p /var/lib/docker-plugins/rclone/cache | |
nano /var/lib/docker-plugins/rclone/config/rclone.conf | |
[my-service] | |
type = s3 | |
provider = AWS | |
env_auth = false | |
access_key_id = AKxxxxxxxxxxxxxx | |
secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxx | |
acl = private | |
region = eu-west-3 | |
endpoint = | |
location_constraint = | |
docker plugin install rclone/docker-volume-rclone:amd64 args="-v" --alias rclone --grant-all-permissions | |
docker volume create --driver rclone \ | |
--opt 'remote=my-service:my-bucket' \ | |
--opt allow_other=true \ | |
--opt vfs_cache_mode=full \ | |
--opt poll_interval=0 \ | |
my-volume | |
docker run --rm -it -v my-volume:/work alpine ash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment