Commit 7c8e6c8
committed
Fix CopyData in Bind Mount
CopyData is an action which should be enabled only in mount volumes and images.
For example:
[root@hostname]# pouch run -it --name test2 -v /home/baijia.wr/volume/:/var/ docker.io/library/busybox:latest ls /var/
spool www
[root@hostname]# ls /home/baijia.wr/volume/
spool www
Without this patch, data is copied form container's dir "/var/" to host's dir "/home/baijia.wr/volume/",
that is unexpected. So CopyData should be disabled in bind mount.
Signed-off-by: Wang Rui <[email protected]>1 parent aa61bb1 commit 7c8e6c8
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| |||
0 commit comments