Environment passing behavior differes from docker #3648
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Passing environment variables using the form
-e VAR
(without assigning a value) differs from the docker behaviour. In docker, the variable will only be passed if set in the parent shell, where as podman always passes the variable, assigning it an empty value if not present in the parent shell.Steps to reproduce the issue:
-e VAR
) and notice that is set in the parent containerDescribe the results you received:
A variable that is not set in the parent shell is present in the containers environment:
Describe the results you expected:
The variable should not be set in the container if not set in the parent shell:
Example from docker:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: