@@ -14,7 +14,7 @@ PLUGIN_TAG=$TAG make enable
14
14
# list plugins
15
15
docker plugin ls
16
16
# start sshd
17
- docker run -d -p 2222:22 sshd
17
+ docker run -d --name sshd - p 2222:22 sshd
18
18
19
19
echo " # test1: simple"
20
20
docker volume create -d vieux/sshfs:$TAG -o sshcmd=root@localhost:/ -o port=2222 -o password=root sshvolume
@@ -37,7 +37,14 @@ docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world
37
37
# cat /var/lib/docker/plugins/sshfs-state.json
38
38
docker volume rm sshvolume
39
39
40
- echo " # test4: source"
40
+ echo " # test4: restart"
41
+ docker volume create -d vieux/sshfs:$TAG -o sshcmd=root@localhost:/ -o port=2222 -o password=root sshvolume
42
+ docker run --rm -v sshvolume:/write busybox sh -c " echo hello > /write/world"
43
+ docker restart sshd
44
+ docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world
45
+ docker volume rm sshvolume
46
+
47
+ echo " # test5: source"
41
48
docker plugin disable vieux/sshfs:$TAG
42
49
docker plugin set vieux/sshfs:$TAG state.source=/tmp
43
50
docker plugin enable vieux/sshfs:$TAG
@@ -47,7 +54,7 @@ docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world
47
54
# cat /tmp/sshfs-state.json
48
55
docker volume rm sshvolume
49
56
50
- echo " # test5 : ssh key"
57
+ echo " # test6 : ssh key"
51
58
docker plugin disable vieux/sshfs:$TAG
52
59
docker plugin set vieux/sshfs:$TAG sshkey.source=` pwd` /.travis/ssh/
53
60
docker plugin enable vieux/sshfs:$TAG
@@ -56,3 +63,5 @@ docker run --rm -v sshvolume:/write busybox sh -c "echo hello > /write/world"
56
63
docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world
57
64
# cat /var/lib/docker/plugins/sshfs-state.json
58
65
docker volume rm sshvolume
66
+
67
+
0 commit comments