This repository was archived by the owner on Oct 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -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
+
You can’t perform that action at this time.
0 commit comments