Skip to content

Commit bdb233f

Browse files
committed
replace sshfs with rclone
1 parent 49328ef commit bdb233f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

content/manuals/engine/storage/volumes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -555,20 +555,20 @@ host and can connect to the second node using SSH.
555555
On the Docker host, install the `vieux/sshfs` plugin:
556556

557557
```console
558-
$ docker plugin install --grant-all-permissions vieux/sshfs
558+
$ docker plugin install --grant-all-permissions rclone/docker-volume-rclone --aliases rclone
559559
```
560560

561561
### Create a volume using a volume driver
562562

563-
This example specifies an SSH password, but if the two hosts have shared keys
563+
This example specifies an SSH password using a custom `rclone.conf` file, but if the two hosts have shared keys
564564
configured, you can exclude the password. Each volume driver may have zero or more
565565
configurable options, you specify each of them using an `-o` flag.
566566

567567
```console
568-
$ docker volume create --driver vieux/sshfs \
569-
-o sshcmd=test@node2:/home/test \
570-
-o password=testpassword \
571-
sshvolume
568+
$ docker volume create --driver rclone \
569+
-o remote=remotehost:home/test \
570+
-o prclone_config="$(cat /path/to/rclone.conf)" \
571+
rclonevolume
572572
```
573573

574574
### Start a container which creates a volume using a volume driver
@@ -584,8 +584,8 @@ Each volume driver may have zero or more configurable options.
584584

585585
```console
586586
$ docker run -d \
587-
--name sshfs-container \
588-
--mount type=volume,volume-driver=vieux/sshfs,src=sshvolume,target=/app,volume-opt=sshcmd=test@node2:/home/test,volume-opt=password=testpassword \
587+
--name rclone-container \
588+
--mount type=volume,volume-driver=rclone,src=rclonevolume,target=/app,volume-opt=remote=remotehost:home/test,volume-opt=rclone_config=$(cat /path/to/rclone.conf) \
589589
nginx:latest
590590
```
591591

0 commit comments

Comments
 (0)