How do I add env variable to containers.conf? #14309
Answered
by
mheon
jahamilton12121
asked this question in
Q&A
-
I am trying to make tmp_dir = "/var/tmp/$USER" but it takes it as a literal string. |
Beta Was this translation helpful? Give feedback.
Answered by
mheon
May 23, 2022
Replies: 1 comment 4 replies
-
Using other environment variables in an environment variable won't work with containers.conf - it's the shell that's expanding those, so if Podman is managing the environment variable directly through containers.conf no expansion will happen. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
jahamilton12121
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using other environment variables in an environment variable won't work with containers.conf - it's the shell that's expanding those, so if Podman is managing the environment variable directly through containers.conf no expansion will happen.