-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging in as another user #136
Comments
The error you are facing with |
Ah, I see, thanks for that. So even if I attempt to add 'ALL' in front of the variables in the |
It should be close to what docker is doing. |
Yeah, I did attempt srun -p mig -G 0 \
--container-image=/home/calvin.p/deepchem-cuda.sqsh \
--container-mounts=/home/calvin.p/work/CMPNN_HydrogenAbstraction:/home/mambauser/deepchem \
--container-save=/home/calvin.p/deepchem-cuda-modified.sqsh \
--container-entrypoint \
--no-container-remap-root \
--export ALL,ENV=deepchem_cuda,USER=mambauser \
--pty bash But that lead me to logging in as my current username on the server, In the end, the workaround I am using is: srun -p mig -G 0 \
--container-image=/home/calvin.p/deepchem-cuda.sqsh \
--container-mounts=/home/calvin.p/work/CMPNN_HydrogenAbstraction:/home/mambauser/deepchem \
--container-save=/home/calvin.p/deepchem-cuda-modified.sqsh \
--container-entrypoint \
--container-remap-root \
--export ENV=deepchem_cuda \
--pty bash -c "su - mambauser" This way, even though it shows me as Thanks for the help! |
Hey, I am relatively new to
enroot
andpyxis
and utilisingsrun
, so apologies in advanceI am trying to use a container based upon
micromamba
container from here.I want to log in as the user
mambauser
that is already set in the Docker image as logging in as this user will automatically activate the micromamba environment. Usually in Docker I would pass-u mambauser
in the command line.I tried to understand the Pyxis documentation, but also realised that our servers are not using the latest Pyxis as
--container-env
is not available. So I tried to use the--export
function and receive this error:So is there anyway that I can log in as
mambauser
?The text was updated successfully, but these errors were encountered: