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
feature request: ability to prepend/append to environment variables in podman run #15288
Comments
I don't think this would be terribly difficult to implement, but I'm worried about the complexity of the user interface. Almost certainly has to be a fresh flag ( |
@mheon could it be something like |
@giuseppe I like that a lot better, yeah |
Why not just --env foo=${foo},bar
|
If ${foo} is not defined within the image, should this fail? |
From our point of view, it would be nice if that didn't fail. |
Allow end users to preprocess default environment variables before injecting them into container using `--env-merge` Usage ``` podman run -it --rm --env-merge some=${some}-edit --env-merge some2=${some2}-edit2 myimage sh ``` Closes: containers#15288 Signed-off-by: Aditya R <arajan@redhat.com>
Above PR #15443 should close this issue. |
Excellent, thanks so much for your work to add this capability! 🎉 |
Allow end users to preprocess default environment variables before injecting them into container using `--env-merge` Usage ``` podman run -it --rm --env-merge some=${some}-edit --env-merge some2=${some2}-edit2 myimage sh ``` Closes: containers#15288 Signed-off-by: Aditya R <arajan@redhat.com>
Allow end users to preprocess default environment variables before injecting them into container using `--env-merge` Usage ``` podman run -it --rm --env-merge some=${some}-edit --env-merge some2=${some2}-edit2 myimage sh ``` Closes: containers#15288 Signed-off-by: Aditya R <arajan@redhat.com>
Allow end users to preprocess default environment variables before injecting them into container using `--env-merge` Usage ``` podman run -it --rm --env-merge some=${some}-edit --env-merge some2=${some2}-edit2 myimage sh ``` Closes: containers#15288 Signed-off-by: Aditya R <arajan@redhat.com>
Allow end users to preprocess default environment variables before injecting them into container using `--env-merge` Usage ``` podman run -it --rm --env-merge some=${some}-edit --env-merge some2=${some2}-edit2 myimage sh ``` Closes: containers#15288 Signed-off-by: Aditya R <arajan@redhat.com>
Allow end users to preprocess default environment variables before injecting them into container using `--env-merge` Usage ``` podman run -it --rm --env-merge some=${some}-edit --env-merge some2=${some2}-edit2 myimage sh ``` Closes: containers#15288 Signed-off-by: Aditya R <arajan@redhat.com>
/kind feature
We would like to request the ability to prepend/append to existing environment variables in the image in
podman run
.Steps to reproduce the issue:
For example, if the image already has
LD_LIBRARY_PATH=foo
set, if we set at the command line during a podman runthen the newest setting
LD_LIBRARY_PATH=bar
will override theLD_LIBRARY_PATH=foo
that was set in the image.We would like the ability to append/prepend so we can adjust these settings for NERSC systems (adding paths to our optimized MPI libraries, for example) while preserving the user's original image functionality.
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Using at NERSC with @scanon and @danfulton
The text was updated successfully, but these errors were encountered: