Skip to content

How to set "SINGULARITY_SHELL" variable? #3363

Answered by dtrudg
Heng-Zhou asked this question in Q&A
Discussion options

You must be logged in to vote

Please see the singularity shell --help output and the environment variable documentation. The shell is set via the -s or --shell flag:

  -s, --shell string                  path to program to use for
                                      interactive shell

Or by setting SINGULARITY_SHELL on the host.

Manipulating the variable inside a definition file / container directly is not something that we advise. The exact code of the action scripts is considered to be an internal detail, and the way that the action scripts are implemented in newly built containers may change in future.

The intended / supported behaviour is only by setting SINGULARITY_SHELL on the host, or use the -s / --shell flag.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Heng-Zhou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants