run,create: modify --env-merge behavior for non-existent vars

Signed-off-by: danishprakash <danish.prakash@suse.com>
This commit is contained in:
danishprakash
2023-06-22 11:29:20 +05:30
parent dba9283269
commit bd69b151fa
3 changed files with 18 additions and 3 deletions

View File

@ -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.