Open tbugfinder opened 1 month ago
That symptom is not the primary underlying problem. The problem is that fusermount3 is a setuid-root program so it is unable to run inside of apptainer which is an unprivileged only context.
However, sshfs does work inside a root-mapped user namespace. You can make it work with either using the --fusemount
option or by running inside apptainer
unshare -rm
mount.fuse.sshfs ...
In the latter case the mountpoint will only be visible inside the root-mapped subshell under unshare.
Version of Apptainer
What version of Apptainer (or Singularity) are you using? Run
apptainer --version
(orsingularity --version
). $ apptainer --version apptainer version 1.3.4Expected behavior
Follow up to: https://github.com/apptainer/singularity/issues/4182
Execute fuse commands within ubuntu 22.04 image (e.g. mount.fuse.sshfs)
Actual behavior
What actually happened? Why was it incorrect?
There's an error about missing /etc/mtab (failed to open /etc/mtab) however that file was built as a link within the image source.
Steps to reproduce this behavior
How can others reproduce this issue/problem? Build Image:
Run:
What OS/distro are you running
How did you install Apptainer
Write here how you installed Apptainer (or Singularity). Eg. RPM, source. deb/apt package