When creating a mountpoint inside a container for the host changes are nor propagated #3210
Unanswered
TheClonerx
asked this question in
Q&A
Replies: 1 comment 1 reply
-
According to the juicefs documentation you need to specify "rshared" on the bind mount. This specifies the "bind propagation" of the mount and causes nested mounts inside the container to propagate out to the host. So change the mount command to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to mount a juicefs client inside a container with the goal of having the mountpoint accessible from the host, however the changes made in a client are not being propagated to other clients in different mountpoints.
To reproduce:
(redis-server& minio server object-storage& sleep 1; juicefs format --storage minio --bucket minio://localhost:9000/data --access-key minioadmin --secret-key minioadmin redis://localhost/1 test& wait;)
podman run --network host -it --rm --device /dev/fuse --cap-add SYS_ADMIN -v /tmp:/mnt:rw docker.io/juicedata/mount juicefs mount redis://localhost/1 /mnt/test
Now these two mountpoints are created under the host as
/tmp/test
&/tmp/test2
If you create a file in the first one, it will not appear in the second one:
echo 'Hello World!' > /tmp/test/greet.txt
ls /tmp/test2
(no output)Beta Was this translation helpful? Give feedback.
All reactions