Docker-volume-plugin doesnt work with docker rootless

What is the problem you are having with rclone?

can't enable / use rclone volume plugin when using docker rootless mode

Run the command 'rclone version' and share the full output of the command.

rclone:latest 1.57.0 volume plugin

I did not install rclone on host. Only trying to install docker plugin.

Which cloud storage system are you using? (eg Google Drive)

GDrive but Not applicable for this issue.

The command you were trying to run (eg rclone copy /tmp remote:tmp)

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

The rclone config contents with secrets removed.


A log from the command with the -vv flag

 docker plugin enable rclone
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/var/lib/docker-plugins/rclone/config" to rootfs at "/data/config" caused: stat /var/lib/docker-plugins/rclone/config: no such file or directory: unknown

I think the plugin needs to handle a user (rootless) installed version of docker. Docker rootless runs as a systemd --user service. Doesn't run as root, everything is under the user home dir, plugins go under ~/.local/share/docker/plugins

docker version
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.16.12
 Git commit:        e91ed57
 Built:             Mon Dec 13 11:40:57 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
  Version:          20.10.12
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.12
  Git commit:       459d0df
  Built:            Mon Dec 13 11:46:12 2021
  OS/Arch:          linux/amd64
  Experimental:     false
  Version:          v1.4.12
  GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2d
  Version:          0.19.0
  GitCommit:        de40ad0

run commands found at

Hopefully @ivandeex will be along in a moment to answer your question :slight_smile:

I did not test this mode of operation at all.

Please create a feature request on github using this link Sign in to GitHub · GitHub

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.