[GH-ISSUE #538] Mount two or more /data folders #315

Closed
opened 2026-04-08 16:51:56 +03:00 by zhus · 4 comments
Owner

Originally created by @dotur911 on GitHub (Feb 4, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/538

Please, is it possible to mount two or more /data folders to acess files from multiple locations.

Originally created by @dotur911 on GitHub (Feb 4, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/538 Please, is it possible to mount two or more /data folders to acess files from multiple locations.
zhus closed this issue 2026-04-08 16:51:56 +03:00
Author
Owner

@sigoden commented on GitHub (Feb 4, 2025):

We will not support this feature, please create one folder and symlink other folders into it.

<!-- gh-comment-id:2633618599 --> @sigoden commented on GitHub (Feb 4, 2025): We will not support this feature, please create one folder and symlink other folders into it.
Author
Owner

@dotur911 commented on GitHub (Feb 4, 2025):

I tryed to use symlink but it does not show when browsing files, i do not know why, i am using dufs in docker ,and symlink enabled in conf file and in docker yaml also,but data does not show. Cany ou please help me?

<!-- gh-comment-id:2633739778 --> @dotur911 commented on GitHub (Feb 4, 2025): I tryed to use symlink but it does not show when browsing files, i do not know why, i am using dufs in docker ,and symlink enabled in conf file and in docker yaml also,but data does not show. Cany ou please help me?
Author
Owner

@sigoden commented on GitHub (Feb 4, 2025):

Docker cannot see or access files outside the mount path, even if they are symlinked inside the container.

Use multiple mount paths instead.

   volumes:
     - dir1:/data/dir1
     - dir2:/data/dir2
   command: /data -A

NOTE I haven't tested it, just a feeling that it might work; you'll need to confirm for yourself.

<!-- gh-comment-id:2633754005 --> @sigoden commented on GitHub (Feb 4, 2025): Docker cannot see or access files outside the mount path, even if they are symlinked inside the container. Use multiple mount paths instead. ```yaml volumes: - dir1:/data/dir1 - dir2:/data/dir2 command: /data -A ``` NOTE I haven't tested it, just a feeling that it might work; you'll need to confirm for yourself.
Author
Owner

@dotur911 commented on GitHub (Feb 4, 2025):

As i can see, i did as you sugest and it somehow works. Thank you!

<!-- gh-comment-id:2634253474 --> @dotur911 commented on GitHub (Feb 4, 2025): As i can see, i did as you sugest and it somehow works. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#315