mirror of https://github.com/docker/cli.git
Update 'run' command doc for better readability
Signed-off-by: Mansi Nahar <mansi.nahar@macbookpro-mansinahar.local>
This commit is contained in:
parent
73aeffd68e
commit
cd04941f04
|
@ -246,12 +246,12 @@ system's interfaces.
|
||||||
This sets simple (non-array) environmental variables in the container. For
|
This sets simple (non-array) environmental variables in the container. For
|
||||||
illustration all three
|
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, set via
|
||||||
through (i.e. `$MYVAR1` from the host is set to `$MYVAR1` in the container).
|
`export`, is passed through (i.e. `$MYVAR1` from the host is set to `$MYVAR1`
|
||||||
When no `=` is provided and that variable is not defined in the client's
|
in the container). When no `=` is provided and that variable is not defined
|
||||||
environment then that variable will be removed from the container's list of
|
in the client's environment then that variable will be removed from the
|
||||||
environment variables.
|
container's list of environment variables. All three flags, `-e`, `--env` and
|
||||||
All three flags, `-e`, `--env` and `--env-file` can be repeated.
|
`--env-file` can be repeated.
|
||||||
|
|
||||||
Regardless of the order of these three flags, the `--env-file` are processed
|
Regardless of the order of these three flags, the `--env-file` are processed
|
||||||
first, and then `-e`, `--env` flags. This way, the `-e` or `--env` will
|
first, and then `-e`, `--env` flags. This way, the `-e` or `--env` will
|
||||||
|
|
Loading…
Reference in New Issue