mirror of
https://github.com/containers/podman.git
synced 2025-06-03 12:17:13 +08:00
run,create: modify --env-merge
behavior for non-existent vars
Signed-off-by: danishprakash <danish.prakash@suse.com>
This commit is contained in:
@ -7,3 +7,7 @@
|
||||
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 is `hello=world-some`.
|
||||
|
||||
Please note that if the environment variable `hello` is not present in the image,
|
||||
then it'll be replaced by an empty string and so using `--env-merge hello=${hello}-some`
|
||||
would result in the new value of `hello=-some`, notice the leading `-` delimiter.
|
||||
|
Reference in New Issue
Block a user