Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

sshfs docker volume plugin

License

NotificationsYou must be signed in to change notification settings

vieux/docker-volume-sshfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This plugin allows you to mount remote folder using sshfs in your container easily.

TravisCIGo Report Card

Usage

Using a password

1 - Install the plugin

$ docker plugin install vieux/sshfs# or to enable debug docker plugin install vieux/sshfs DEBUG=1# or to change where plugin state is storeddocker plugin install vieux/sshfs state.source=<any_folder>

2 - Create a volume

Make sure thesource path on the ssh server was exists.

Or you'll be failed while use/mount the volume.

$ docker volume create -d vieux/sshfs -o sshcmd=<user@host:path> -o password=<password> [-o port=<port>] [-o <any_sshfs_-o_option> ] sshvolumesshvolume$ docker volume lsDRIVER              VOLUME NAMElocal               2d75de358a70ba469ac968ee852efd4234b9118b7722ee26a1c5a90dcaea6751local               842a765a9bb11e234642c933b3dfc702dee32b73e0cf7305239436a145b89017local               9d72c664cbd20512d4e3d5bb9b39ed11e4a632c386447461d48ed84731e44034local               be9632386a2d396d438c9707e261f86fd9f5e72a7319417901d84041c8f14a4dlocal               e1496dfe4fa27b39121e4383d1b16a0a7510f0de89f05b336aab3c0deb4dda0evieux/sshfs         sshvolume

3 - Use the volume

$ docker run -it -v sshvolume:<path> busybox ls <path>

Using an ssh key

1 - Install the plugin

$ docker plugin install vieux/sshfs sshkey.source=/home/<user>/.ssh/# or to enable debug docker plugin install vieux/sshfs DEBUG=1 sshkey.source=/home/<user>/.ssh/# or to change where plugin state is storeddocker plugin install vieux/sshfs state.source=<any_folder> sshkey.source=/home/<user>/.ssh/

2 - Create a volume

Make sure thesource path on the ssh server was exists.

Or you'll be failed while use/mount the volume.

$ docker volume create -d vieux/sshfs -o sshcmd=<user@host:path> [-o IdentityFile=/root/.ssh/<key>] [-o port=<port>] [-o <any_sshfs_-o_option> ] sshvolumesshvolume$ docker volume lsDRIVER              VOLUME NAMElocal               2d75de358a70ba469ac968ee852efd4234b9118b7722ee26a1c5a90dcaea6751local               842a765a9bb11e234642c933b3dfc702dee32b73e0cf7305239436a145b89017local               9d72c664cbd20512d4e3d5bb9b39ed11e4a632c386447461d48ed84731e44034local               be9632386a2d396d438c9707e261f86fd9f5e72a7319417901d84041c8f14a4dlocal               e1496dfe4fa27b39121e4383d1b16a0a7510f0de89f05b336aab3c0deb4dda0evieux/sshfs         sshvolume

3 - Use the volume

$ docker run -it -v sshvolume:<path> busybox ls <path>

LICENSE

MIT

About

sshfs docker volume plugin

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp