Installing Docker Volume Plugin on a Windows host

What is the problem you are having with rclone?

I am trying to install the Docker Volume Plugin on a Windows 11 machine, according to the instructions found in this link:
https://rclone.org/docker/#installing-as-managed-plugin

What is your rclone version (output from rclone version)

rclone v1.57.0
- os/version: Microsoft Windows 10 Home Single Language 2009 (64 bit)
- os/kernel: 10.0.22000.376 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.2
- go/linking: dynamic
- go/tags: cmount

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

Backblaze B2 (but I believe it is not relevant to this particular question)

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

docker plugin install rclone/docker-volume-rclone:amd64 --grant-all-permissions --alias rclone

The rclone config contents with secrets removed.

I believe it is not relevant to this particular question, but here it is anyway:

[b2]
type = b2
key = ...
account = ...

[b2-lopelisoli-storage-crypt]
type = crypt
password = ...
password2 = ...
remote = b2:my_bucket_name

A log from the command with the -vv flag

'docker plugin install' does not accept a -vv flag. This is the error message without it:

amd64: Pulling from rclone/docker-volume-rclone
Digest: sha256:dd64dace6106c548bb75419fab36b6c04ca2394e542e10490e08ce62581f26c4
65cdd3e5660b: Complete
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

The instructions in this link offer the following explanation, which I believe is related to the error message I'm seeing:

The plugin requires presence of two directories on the host before it can be installed. Note that plugin will not create them automatically. By default they must exist on host at the following locations (though you can tweak the paths):
     /var/lib/docker-plugins/rclone/config is reserved for the rclone.conf config file and must exist even if it's empty and the config file is not present.
     /var/lib/docker-plugins/rclone/cache holds the plugin state file as well as optional VFS caches.

The problem is that I have no idea where these two directories should be located on a Windows host. My first try was to create them 'somewhere', and use the config and cache command-line arguments to specify the correct paths to docker:

docker plugin install rclone/docker-volume-rclone:amd64 --grant-all-permissions --alias rclone cache=C:\Users\lopelisoli\AppData\Local\rclone-docker config=C:\Users\lopelisoli\AppData\Roaming\rclone-docker

The resulting error is apparently the same:

amd64: Pulling from rclone/docker-volume-rclone
Digest: sha256:dd64dace6106c548bb75419fab36b6c04ca2394e542e10490e08ce62581f26c4
65cdd3e5660b: Complete
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/run/desktop-containerd/daemon/io.containerd.runtime.v2.task/plugins.moby/f0662957907b43e1fbabf94b286c9cc2d227cbdf56b46154dc5ea431a040aa37/C:\\Users\\lopelisoli\\AppData\\Roaming\\rclone-docker" to rootfs at "/data/config" caused: stat /var/run/desktop-containerd/daemon/io.containerd.runtime.v2.task/plugins.moby/f0662957907b43e1fbabf94b286c9cc2d227cbdf56b46154dc5ea431a040aa37/C:\Users\lopelisoli\AppData\Roaming\rclone-docker: no such file or directory: unknown

I then tried installing Ubuntu as a WSL2 distro, and proceeded to run the docker commands inside it:

docker plugin install rclone/docker-volume-rclone:amd64 --grant-all-permissions --alias rclone

This time the specified directories definitely exist within WSL2 Ubuntu, but apparently this is not enough - the same error is produced:

amd64: Pulling from rclone/docker-volume-rclone
Digest: sha256:dd64dace6106c548bb75419fab36b6c04ca2394e542e10490e08ce62581f26c4
65cdd3e5660b: Complete
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

Any suggestions on how I could get this to work?

hello and welcome to the forum,

did you see this?

I had not seen your post @asdffdsa, thanks for pointing it out. Indeed it seems to be the same problem. I apologize for the duplicate question.

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