-
Notifications
You must be signed in to change notification settings - Fork 111
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Version of Singularity
singularity-ce version 3.10.2-bionic
Describe the bug
Whenever I attempt to pass environment variables to a singularity container using the --env-file option, the following warning is issued:
GID: readonly variable
UID: readonly variable
even if the --env-file is actually empty.
To Reproduce
Steps to reproduce the behavior:
- create a file containing the environment variables as key-value pairs, see https://docs.sylabs.io/guides/3.7/user-guide/environment_and_metadata.html#env-file-option , e.g.
echo MY_VAR=host_var > .env
- get an interactive singularity session, e.g.
singularity shell --env-file .env $SINGULARITY_CONTAINER
in which the $SINGULARITY_CONTAINER points to a valid .sif file.
Results in:
GID: readonly variable
UID: readonly variable
Singularity> echo $MY_VAR
host_var
i.e. the variable is passed correctly, but I get an annoying GID / UID warning.
Expected behavior
I didn't expect the UID/GID readonly variable warnings.
OS / Linux Distribution
Which Linux distribution are you using?
Ubuntu 18.04.6 LTS
Installation Method
Installed by sysadmin, not sure which method he followed.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working