-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Unable to skip default environment variables #11566
Comments
Context, we are looking at formally supporting For CWL we are interested in strict reproducibility, so controlling the execution environment is important to us |
Most likely you would want --unsetenv TERM --unsetenv container? |
Or we could add something to containers.conf for default environment variables. |
Thanks for the quick response!
That could work. Though many users
Preferably something we can set from the command line or an environment variable (like |
I don't think this is consistent even between Docker versions. I ran the same command on Docker 19.03, for example, and it did in fact include |
Thanks for testing. To me, this makes it even more important to be able to remove "default" environment variables. |
I think the best we could do is define them within the containers.conf and then allow admins to specify which ones they want. |
@rhatdan If a program sets |
It will only use merge the built in defaults and the containers.conf. |
A friendly reminder that this issue had no activity for 30 days. |
Thanks, this the environment variable overrides suggested still need implementing |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I expect
podman run
to inject the same environment variables asdocker run
does; and if not to have a way to override thatSteps to reproduce the issue:
Compare the results of
/usr/bin/docker run debian env
to/usr/bin/podman run debian env
See the extra
container
andTERM
environment variables.There is no way to unset these extra environment variables, as the command-line syntax only allows for setting to an empty string
Describe the results you received:
Describe the results you expected:
The behaviour of
/usr/bin/podman run
would match/usr/bin/docker run
as promised in https://docs.podman.io/en/latest/markdown/podman.1.htmlOutput of
podman version
:Output of
podman info --debug
: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/master/troubleshooting.md)
Yes and yes, respectively
The text was updated successfully, but these errors were encountered: