Skip to content

Instantly share code, notes, and snippets.

@btheu
Last active March 3, 2024 11:24
Show Gist options
  • Save btheu/4fbbd198f9d814bc9f25ca9ee6f22597 to your computer and use it in GitHub Desktop.
Save btheu/4fbbd198f9d814bc9f25ca9ee6f22597 to your computer and use it in GitHub Desktop.
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