mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
run,create: add support for --env-merge for preprocessing vars
Allow end users to preprocess default environment variables before injecting them into container using `--env-merge` Usage ``` podman run -it --rm --env-merge some=${some}-edit --env-merge some2=${some2}-edit2 myimage sh ``` Closes: https://github.com/containers/podman/issues/15288 Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
5
docs/source/markdown/options/env-merge.md
Normal file
5
docs/source/markdown/options/env-merge.md
Normal file
@ -0,0 +1,5 @@
|
||||
#### **--env-merge**=*env*
|
||||
|
||||
Preprocess default environment variables for the containers. For example
|
||||
if image contains environment variable `hello=world` user can preprocess
|
||||
it using `--env-merge hello=${hello}-some` so new value will be `hello=world-some`.
|
@ -208,6 +208,8 @@ Read in a line delimited file of environment variables. See **Environment** note
|
||||
|
||||
@@option env-host
|
||||
|
||||
@@option env-merge
|
||||
|
||||
@@option expose
|
||||
|
||||
#### **--gidmap**=*container_gid:host_gid:amount*
|
||||
|
@ -243,6 +243,8 @@ Read in a line delimited file of environment variables. See **Environment** note
|
||||
|
||||
@@option env-host
|
||||
|
||||
@@option env-merge
|
||||
|
||||
@@option expose
|
||||
|
||||
#### **--gidmap**=*container_gid:host_gid:amount*
|
||||
|
Reference in New Issue
Block a user