Signed-off-by: Mansi Nahar <mansi.nahar@macbookpro-mansinahar.local>
| ... | ... |
@@ -246,12 +246,12 @@ system's interfaces. |
| 246 | 246 |
This sets simple (non-array) environmental variables in the container. For |
| 247 | 247 |
illustration all three |
| 248 | 248 |
flags are shown here. Where `-e`, `--env` take an environment variable and |
| 249 |
-value, or if no `=` is provided, then that variable's current value is passed |
|
| 250 |
-through (i.e. `$MYVAR1` from the host is set to `$MYVAR1` in the container). |
|
| 251 |
-When no `=` is provided and that variable is not defined in the client's |
|
| 252 |
-environment then that variable will be removed from the container's list of |
|
| 253 |
-environment variables. |
|
| 254 |
-All three flags, `-e`, `--env` and `--env-file` can be repeated. |
|
| 249 |
+value, or if no `=` is provided, then that variable's current value, set via |
|
| 250 |
+`export`, is passed through (i.e. `$MYVAR1` from the host is set to `$MYVAR1` |
|
| 251 |
+in the container). When no `=` is provided and that variable is not defined |
|
| 252 |
+in the client's environment then that variable will be removed from the |
|
| 253 |
+container's list of environment variables. All three flags, `-e`, `--env` and |
|
| 254 |
+`--env-file` can be repeated. |
|
| 255 | 255 |
|
| 256 | 256 |
Regardless of the order of these three flags, the `--env-file` are processed |
| 257 | 257 |
first, and then `-e`, `--env` flags. This way, the `-e` or `--env` will |