-
i have test the juicefs, but it can not mount into docker . |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@chgyi Can you use the issue template to report more information? |
Beta Was this translation helpful? Give feedback.
-
@chgyi Can you added steps to reproduce the issue? |
Beta Was this translation helpful? Give feedback.
-
then i run docker run commant , it get the errors . docker run -it -v /home/ubuntu/test_juc/fs/:/data -w /data localhost/ubuntu/bin/bashdocker: Error response from daemon: error while creating mount source path '/home/ubuntu/test_juc/fs': mkdir /home/ubuntu/test_juc/fs: file exists. |
Beta Was this translation helpful? Give feedback.
-
@chgyi It seems you mount JuiceFS with user For this case, docker will create the 2 Ways to resolve this:
|
Beta Was this translation helpful? Give feedback.
@chgyi It seems you mount JuiceFS with user
ubuntu
. When mounting JuiceFS with non-root user using default fuse options, theallow_other
is absent, thenroot
has no permission access the mount point.For this case, docker will create the
/home/ubuntu/test_juc/fs/
directory if it doesn't exist, when it check the existence of the directory (maybe usingstat
system call),Permission denied
error would return, then docker try tomkdir
it,file exists
error returned.2 Ways to resolve this:
user_allow_other
configuration to/etc/fuse.conf
where fuse use, then mounting JuiceFS with option-o allow_other
. Use this with caution as all other accounts can walk t…