Skip to content

Mount a rclone remote inside a docker container.

License

Notifications You must be signed in to change notification settings

exedox/docker-rclone-mount

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-rclone-mount

Mount a rclone remote inside a docker container. This fork is for personal learning purposes only. Please check out danielheene's for original stuff.

Start

docker run \
  --cap-add SYS_ADMIN \
  --device /dev/fuse \
  -v ${HOST_CONF_DIR}:/config \
  -v ${HOST_MOUNT_DIR}:/mount \
  danielheene/rclone-mount

Environment variables

CONFIG_DIR      /config         # directory where config file is stored
CONFIG_FILE     rclone.conf     # name of the stored rclone config file
MOUNT_DIR       /mount          # directory where the volume is mounted
MOUNT_REMOTE    mount           # rclone volume name which will be mounted
CACHE_DIR       /cache          # directory which rclone uses for caching

Example config file

[remote]
type = drive
...

[cache]
type = cache
remote = remote:
tmp_upload_path = /cache
...

[mount]
type = alias
remote = cache:
...

License

MIT

About

Mount a rclone remote inside a docker container.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 50.2%
  • Shell 49.8%