Jump to content
Sign in to follow this  
cris

SSHfs

Recommended Posts


Description: Mount remote SFTP as a local directory on NAS (sshfs) sshfs command line added to NAS $PATH <b>Mounting</b> Usage: sshfs mount {mountpoint} [flags] Flags: -a, --address string ssh server address (default "127.0.0.1:22") -h, --help help for mount -p, --password string ssh password -r, --root string ssh root (default "/opt") -u, --username string ssh username (default "root") To mount secrets, first create a mountpoint (mkdir test), then use sshfs to mount: sshfs mount -a 10.10.10.10:22 -u root -p ****** --log-level debug -r /tmp/test /opt/data/tmp <b>Docker</b> untested Usage: sshfs docker {mountpoint} [flags] Flags: -a, --address string ssh server address (default "127.0.0.1:22") -h, --help help for docker -p, --password string ssh password -s, --socket string socket address to communicate with docker (default "/run/docker/plugins/ssh.sock") -u, --username string ssh username (default "root") To start the Docker plugin, create a directory to hold mountpoints (mkdir test), then use sshfs to start the server. When Docker volumes request a volume (docker run --volume-driver vault --volume {prefix}:/container/secret/path), the plugin will create mountpoints and manage FUSE servers automatically. sshfs docker /mnt/sshfs -a 10.10.10.10:22 -u root -p ****** --log-level debug -r /tmp/test ls /run/docker/plugins/ ssh.sock docker run --rm -it -v myvola:/data --volume-driver=ssh alpine sh docker volume ls DRIVER VOLUME NAME ssh myvola
Créateur: QoolBox

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×