2021-05-26 17:43:50 +08:00
|
|
|
{
|
|
|
|
"description": "Rclone volume plugin for Docker",
|
2021-07-16 06:35:54 +08:00
|
|
|
"documentation": "https://rclone.org/docker",
|
2021-05-26 17:43:50 +08:00
|
|
|
"interface": {
|
|
|
|
"socket": "rclone.sock",
|
|
|
|
"types": ["docker.volumedriver/1.0"]
|
|
|
|
},
|
|
|
|
"linux": {
|
|
|
|
"capabilities": [
|
|
|
|
"CAP_SYS_ADMIN"
|
|
|
|
],
|
|
|
|
"devices": [
|
|
|
|
{
|
|
|
|
"path": "/dev/fuse"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"type": "host"
|
|
|
|
},
|
2021-07-16 06:35:54 +08:00
|
|
|
"entrypoint": ["rclone", "serve", "docker"],
|
2021-05-26 17:43:50 +08:00
|
|
|
"workdir": "/data",
|
|
|
|
"args": {
|
|
|
|
"name": "args",
|
|
|
|
"value": [],
|
|
|
|
"settable": ["value"]
|
|
|
|
},
|
|
|
|
"env": [
|
|
|
|
{
|
|
|
|
"name": "RCLONE_VERBOSE",
|
|
|
|
"value": "0",
|
|
|
|
"settable": ["value"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "RCLONE_CONFIG",
|
|
|
|
"value": "/data/config/rclone.conf"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "RCLONE_CACHE_DIR",
|
|
|
|
"value": "/data/cache"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "RCLONE_BASE_DIR",
|
|
|
|
"value": "/mnt"
|
2021-10-03 23:55:35 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "HTTP_PROXY",
|
|
|
|
"value": "",
|
|
|
|
"settable": ["value"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "HTTPS_PROXY",
|
|
|
|
"value": "",
|
|
|
|
"settable": ["value"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "NO_PROXY",
|
|
|
|
"value": "",
|
|
|
|
"settable": ["value"]
|
2021-05-26 17:43:50 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"mounts": [
|
|
|
|
{
|
|
|
|
"name": "config",
|
|
|
|
"source": "/var/lib/docker-plugins/rclone/config",
|
|
|
|
"destination": "/data/config",
|
|
|
|
"type": "bind",
|
|
|
|
"options": ["rbind"],
|
|
|
|
"settable": ["source"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "cache",
|
|
|
|
"source": "/var/lib/docker-plugins/rclone/cache",
|
|
|
|
"destination": "/data/cache",
|
|
|
|
"type": "bind",
|
|
|
|
"options": ["rbind"],
|
|
|
|
"settable": ["source"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"propagatedMount": "/mnt"
|
|
|
|
}
|