TIL how to use a FUSE-mounted directory as a Docker volume
2025-11-20 • 1 min

We need to allow the Docker user docker to access the FUSE-mounted filesystem with the allow_other or allow_root mount options

allow_other

This option overrides the security measure restricting file access to the user mounting the filesystem. So all users (including root) can access the files. This option is by default only allowed to root, but this restriction can be removed with a configuration option described in the previous section.

However, to specify these mount options, we must set the following configuration line in /etc/fuse.conf:

user_allow_other

With this, we can mount the FUSE filesystem with -o allow_root or -o allow_other:

fusermount -o allow_other [MOUNTPOINT]

Finally, mount a directory in the FUSE filesystem as a Docker volume.

# References

Edited: 2025-11-20