Environment Variable Behavior #1173
Replies: 1 comment
-
I decided to take a look at the code, and I found this in
Unless I'm mistaken, that will take all env varibles from the host into the container. The problem is that I'm running a lof the application that use varaibles like Further down it appears to take the PATH from the host, map the paths to the paths in the container, and tack those onto PATH in the container. I imagine that could work for things like scripts or anything that doesn't depend on a shared library, but if I try to run some executable that has RPATH in the ELF header, it's never going to work. Adding the host PATH to the container would mostly be a source of weird problems for me I think. I would be nice if there were some options to opt-out of this behavior. Or maybe a mode where I can opt-in certain variables to be brought into the containter. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Where can I find documentation on the behavior of enviroment variables when entering a containter? I have a container with specific variables setup, but when I run distrobox enter, it seems to overwrite many variables with variables from the host. Is there any way to stop that?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions