mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #20173 from duglin/FixEnvDoc
Make it clear that env vars must be simple
This commit is contained in:
commit
e54ac9b3a1
1 changed files with 2 additions and 1 deletions
|
@ -220,7 +220,8 @@ system's interfaces.
|
||||||
|
|
||||||
$ docker run -e MYVAR1 --env MYVAR2=foo --env-file ./env.list ubuntu bash
|
$ docker run -e MYVAR1 --env MYVAR2=foo --env-file ./env.list ubuntu bash
|
||||||
|
|
||||||
This sets environmental variables in the container. For illustration all three
|
This sets simple (non-array) environmental variables in the container. For
|
||||||
|
illustration all three
|
||||||
flags are shown here. Where `-e`, `--env` take an environment variable and
|
flags are shown here. Where `-e`, `--env` take an environment variable and
|
||||||
value, or if no `=` is provided, then that variable's current value is passed
|
value, or if no `=` is provided, then that variable's current value is passed
|
||||||
through (i.e. `$MYVAR1` from the host is set to `$MYVAR1` in the container).
|
through (i.e. `$MYVAR1` from the host is set to `$MYVAR1` in the container).
|
||||||
|
|
Loading…
Add table
Reference in a new issue