requested change to the behavior of the podman run --env-merge flag #18920
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Feature request description
Dear Podman developers,
Thank you for providing the podman run
--env-merge
flag we requested in #15288.We are working on getting this into production for our podman-hpc modules. We would like to prepend some directories to the user container
LD_LIBRARY_PATH
settings without overwriting whatever they may already have.However, we have found that in the situation where an environment variable (ex:
LD_LIBRARY_PATH
) is not already set in the container, the--env-merge
flag returns an emptyLD_LIBRARY_PATH
.I've included an example below. In the first command, I am running the test container
test:test
that contains the settingLD_LIBRARY_PATH=foo
. In the second command, I am running theubuntu:jammy
container which does not defineLD_LIBRARY_PATH
.Suggest potential solution
Feature request: update the behavior of the
--env-merge
flag to preserve the requested additional variable setting, even if there is no original variable defined.Desired behavior:
Have you considered any alternatives?
We are open to alternatives.
Additional context
Thank you for considering this change.
The text was updated successfully, but these errors were encountered: