ubuntu@ip-172-31-9-105:~$ whoami
ubuntu
ubuntu@ip-172-31-9-105:~$ singularity exec -e jedi-tutorial_latest.sif whoami
jedi
This is for singularity version 3.6.4. I could have sworn that this did not happen in earlier versions of singularity. I thought one's username is the same inside and outside the container. Despite this, the $HOME directory is the same inside and outside the container.
This is causing problems for ssh authentication. For example, git is looking for ssh keys in /home/jedi/.ssh instead of $HOME/.ssh.
Desired behavior: I want my user id inside the container to be the same as it is outside the container.
Does anyone know why this is happening and how to achieve the desired behavior?
Thanks!
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/singularity/b5359e64-5626-437a-a574-158152ccd2f6n%40lbl.gov.