Replies: 3 comments
-
Transferred to a Q&A discussion as this is usage focused rather than a bug / feature request. You aren't doing anything wrong. This is the way that Singularity is designed, which is purposefully different from Docker: https://docs.sylabs.io/guides/latest/user-guide/introduction.html
The only way you can be a different user in the container is via a Linux feature called user namespaces. If you are unable to use Singularity's newer OCI-Mode tries to be closer to Docker etc. For example, it would respect the |
Beta Was this translation helpful? Give feedback.
-
Note that if you just want to avoid seeing your home directory in the container, but don't mind being the same user in the container, you can use |
Beta Was this translation helpful? Give feedback.
-
Many thanks for the explanation @dtrudg ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of issue
I don't wan't to see my local/host user from the container.
My Dockerfile:
Once created, when doing
I see my local/host user, instead an empty folder.
I tried with
--containall
,--contain
,--cleanenv
and-B ../passwd:/etc/passwd
But I still see my local/host user. The only way I don't see is when using
--fakeroot
, but I can't use it on our HPC.What I am doing wrong? Thanks
Beta Was this translation helpful? Give feedback.
All reactions