Skip to content

the mount point can not mount to docker #214

Answered by chnliyong
chgyi asked this question in Q&A
Discussion options

You must be logged in to vote

@chgyi It seems you mount JuiceFS with user ubuntu. When mounting JuiceFS with non-root user using default fuse options, the allow_other is absent, then root 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 using stat system call), Permission denied error would return, then docker try to mkdir it, file exists error returned.

2 Ways to resolve this:

  1. Mounting JuiceFS with root user
  2. Add 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…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by davies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #209 on March 03, 2021 03:29.