Merge pull request #25626 from jankaluza/24875

Add --env and --unsetenv to podman update.
This commit is contained in:
openshift-merge-bot[bot]
2025-03-21 13:52:17 +00:00
committed by GitHub
14 changed files with 193 additions and 44 deletions

View File

@ -0,0 +1,13 @@
####> This option file is used in:
####> podman update
####> If file is edited, make sure the changes
####> are applicable to all of those.
#### **--env**, **-e**=*env*
Add a value (e.g. env=*value*) to the container. Can be used multiple times.
If the value already exists in the container, it is overridden.
To remove an environment variable from the container, use the `--unsetenv`
option.
Note that the env updates only affect the main container process after
the next start.

View File

@ -0,0 +1,10 @@
####> This option file is used in:
####> podman update
####> If file is edited, make sure the changes
####> are applicable to all of those.
#### **--unsetenv**=*env*
Unset environment variables from the container.
Note that the env updates only affect the main container process after
the next start.

View File

@ -42,6 +42,8 @@ Updates the configuration of an existing container, allowing changes to resource
@@option device-write-iops
@@option env.update
@@option health-cmd
@@option health-interval
@ -90,6 +92,8 @@ Changing this setting resets the timer, depending on the state of the container.
@@option restart
@@option unsetenv.update
## EXAMPLEs