mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
Add --unsetenv & --unsetenv-all to remove def environment variables
Podman adds a few environment variables by default, and currently there is no way to get rid of them from your container. This option will allow you to specify which defaults you don't want. --unsetenv-all will remove all default environment variables. Default environment variables can come from podman builtin, containers.conf or from the container image. Fixes: https://github.com/containers/podman/issues/11836 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -1047,6 +1047,18 @@ Remote connections use local containers.conf for defaults
|
||||
Set the umask inside the container. Defaults to `0022`.
|
||||
Remote connections use local containers.conf for defaults
|
||||
|
||||
#### **--unsetenv**=*env*
|
||||
|
||||
Unset default environment variables for the container. Default environment
|
||||
variables include variables provided natively by Podman, environment variables
|
||||
configured by the image, and environment variables from containers.conf.
|
||||
|
||||
#### **--unsetenv-all**=*true|false*
|
||||
|
||||
Unset all default environment variables for the container. Default environment
|
||||
variables include variables provided natively by Podman, environment variables
|
||||
configured by the image, and environment variables from containers.conf.
|
||||
|
||||
#### **--uidmap**=*container_uid*:*from_uid*:*amount*
|
||||
|
||||
Run the container in a new user namespace using the supplied mapping. This
|
||||
|
@ -1117,6 +1117,18 @@ Remote connections use local containers.conf for defaults
|
||||
Set the umask inside the container. Defaults to `0022`.
|
||||
Remote connections use local containers.conf for defaults
|
||||
|
||||
#### **--unsetenv**=*env*
|
||||
|
||||
Unset default environment variables for the container. Default environment
|
||||
variables include variables provided natively by Podman, environment variables
|
||||
configured by the image, and environment variables from containers.conf.
|
||||
|
||||
#### **--unsetenv-all**=*true|false*
|
||||
|
||||
Unset all default environment variables for the container. Default environment
|
||||
variables include variables provided natively by Podman, environment variables
|
||||
configured by the image, and environment variables from containers.conf.
|
||||
|
||||
#### **--uidmap**=*container_uid*:*from_uid*:*amount*
|
||||
|
||||
Run the container in a new user namespace using the supplied mapping. This
|
||||
|
Reference in New Issue
Block a user