Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

YouMightNotNeedKubernetes/rclone-volume-driver-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

rclone

About

How to guide for using rclone as Docker Volume driver

Getting Started

Here are a step-by-step guide on how to use rclone/docker-volume-rclone volume driver.

  1. Create config and cache directories
  2. Create rclone.conf configuration file
  3. Install rclone/docker-volume-rclone plugin

Important

You need to perform the above tasks on all nodes that required access to the volume driver.

Create config and cache directories

By default the plugin use this following directory to store rclone.conf and cache but you must create the directory before hand.

sudo mkdir -p /var/lib/docker-plugins/rclone/config
sudo mkdir -p /var/lib/docker-plugins/rclone/cache

If you wish to change the directory please install the plugin using custom config and cache directory.

Create rclone.conf configuration file

Create rclone.conf configuration file in the config directory you just created.

Here an example using MinIO:

[minio]
type = s3
provider = Minio
env_auth = false
access_key_id = minioadmin
secret_access_key = minioadmin
region = us-east-1
endpoint = http://127.0.0.1:9000
location_constraint =
server_side_encryption =

Install rclone/docker-volume-rclone plugin

Default install

docker plugin install rclone/docker-volume-rclone:amd64 \
  --alias rclone \
  --grant-all-permissions \
  args="-v --allow-other"

# config=/var/lib/docker-plugins/rclone/config
# cache=/var/lib/docker-plugins/rclone/cache

Or install with custom config and cache directory.

docker plugin install rclone/docker-volume-rclone:amd64 \
  --alias rclone \
  --grant-all-permissions \
  args="-v --allow-other" \
  config=/path/rclone/config \
  cache=/path/rclone/cache

Operation

Enable the plugin

To enable the plugin, run:

docker plugin enable rclone

Diable the plugin

To diable the plugin, run:

docker plugin enable rclone

Note

Before you can disable the plugin, you will need to stop/remove any containers and volumes that are currently using the plugin.

About

How to guide for using rclone as Docker Volume driver

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published