From 01c9b968bdec8ba1202eacc5ec5c7edb361db6ce Mon Sep 17 00:00:00 2001 From: mansinahar Date: Sun, 15 May 2016 12:55:19 -0400 Subject: [PATCH] Update 'run' command doc for better readability Signed-off-by: Mansi Nahar --- docs/reference/commandline/run.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/reference/commandline/run.md b/docs/reference/commandline/run.md index 530b1bfb14..1e4f089931 100644 --- a/docs/reference/commandline/run.md +++ b/docs/reference/commandline/run.md @@ -246,12 +246,12 @@ system's interfaces. 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 -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). -When no `=` is provided and that variable is not defined in the client's -environment then that variable will be removed from the container's list of -environment variables. -All three flags, `-e`, `--env` and `--env-file` can be repeated. +value, or if no `=` is provided, then that variable's current value, set via +`export`, is passed through (i.e. `$MYVAR1` from the host is set to `$MYVAR1` +in the container). When no `=` is provided and that variable is not defined +in the client's environment then that variable will be removed from the +container's list of environment variables. All three flags, `-e`, `--env` and +`--env-file` can be repeated. 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