This repository was archived by the owner on Oct 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,31 @@ docker pull rastasheep/ubuntu-sshd:14.04
88docker pull busybox
99
1010# script
11+
12+ # make the plugin
1113make
14+ # enable the plugin
1215make enable
16+ # list plugins
1317docker plugin ls
18+ # start sshd
1419docker run -d -p 2222:22 rastasheep/ubuntu-sshd:14.04
20+
21+ # test1: simple
1522docker volume create -d vieux/sshfs:next -o sshcmd=root@localhost:/ -o port=2222 -o password=root sshvolume
16- docker volume ls
17- docker run -it -v sshvolume:/data1 busybox sh -c " echo hello > /data1/world"
18- docker run -it -v sshvolume:/data2 busybox grep -Fxq hello /data2/world
23+ docker run --rm -v sshvolume:/write busybox sh -c " echo hello > /write/world"
24+ docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world
25+ docker volume rm sshvolume
26+
27+ # test2: allow_other
28+ docker volume create -d vieux/sshfs:next -o sshcmd=root@localhost:/ -o allow_other -o port=2222 -o password=root sshvolume
29+ docker run --rm -v sshvolume:/write -u nobody busybox sh -c " echo hello > /write/world"
30+ docker run --rm -v sshvolume:/read -u nobody busybox grep -Fxq hello /read/world
31+ docker volume rm sshvolume
32+
33+ # test3: compression
34+ docker volume create -d vieux/sshfs:next -o sshcmd=root@localhost:/ -o Ciphers=arcfour -o Compression=no -o port=2222 -o password=root sshvolume
35+ docker run --rm -v sshvolume:/write busybox sh -c " echo hello > /write/world"
36+ docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world
37+ docker volume rm sshvolume
38+
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ $ docker plugin install vieux/sshfs # or docker plugin install vieux/sshfs DEBUG
16162 - Create a volume
1717
1818```
19- $ docker volume create -d vieux/sshfs -o sshcmd=<user@host:path> -o password=<password> [-o port=<port>] [-o allow_other ] sshvolume
19+ $ docker volume create -d vieux/sshfs -o sshcmd=<user@host:path> -o password=<password> [-o port=<port>] [-o <any_sshfs_-o_option> ] sshvolume
2020sshvolume
2121$ docker volume ls
2222DRIVER VOLUME NAME
You can’t perform that action at this time.
0 commit comments