This docker plugin extends the functionality of Docker - Volume Mounts

Syntax

Install sshfx

❯ docker plugin install vieux/sshfs

Plugin "vieux/sshfs" is requesting the following privileges:
- network: [host]
- capabilities: [CAP_SYS_ADMIN]
Do you grant the above permissions? [y/N] y

vieux/sshfs

Create a volume using the plugin. The following will mount the directory /example-directory on host 1.2.3.4 into a volume named my-ssh-volume.

❯ docker volume create \
  -d vieux/sshfs \
  --name my-ssh-volume \
  -o sshcmd=user@1.2.3.4:/example-directory \
  -o password=$(cat file_containing_password_for_remote_host)

my-ssh-sshvolume