summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Demeester <vincent@sbr.pm>2016-05-17 17:06:12 +0200
committerSebastiaan van Stijn <github@gone.nl>2016-05-25 21:33:12 +0200
commite3007c51a5b9b144adc4dc716e3b62ca27dd4ad2 (patch)
tree74bf7e4b14691f6a2e25a76037cb30e7e593aa2a
parent4971a81f75607836c56e02ac2d1d0767a5679e62 (diff)
downloaddocker-e3007c51a5b9b144adc4dc716e3b62ca27dd4ad2.tar.gz
Merge pull request #22768 from mansinahar/run-cmd-doc
Update 'run' command doc for better readability. Issue:#22721 (cherry picked from commit 28a436af3641f202287f98e326537a10897da9fa) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
-rw-r--r--docs/reference/commandline/run.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/reference/commandline/run.md b/docs/reference/commandline/run.md
index 97553a67dc..544aa37240 100644
--- a/docs/reference/commandline/run.md
+++ b/docs/reference/commandline/run.md
@@ -227,12 +227,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