1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fixing doc references to --env-file

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
This commit is contained in:
Vincent Batts 2014-02-26 16:05:25 -05:00
parent 4e0014f582
commit bcba5246f9

View file

@ -1287,13 +1287,13 @@ explains in detail how to manipulate ports in Docker.
.. code-block:: bash
$ sudo docker run -e MYVAR1 --env MYVAR2=foo --envfile ./env.list ubuntu bash
$ sudo docker run -e MYVAR1 --env MYVAR2=foo --env-file ./env.list ubuntu bash
This sets environmental variables to the container. For illustration all three
flags are shown here. Where -e and --env can be repeated, 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). The --envfile flag takes a filename as an argument and expects each
container). The --env-file flag takes a filename as an argument and expects each
line to be a VAR=VAL format.
.. code-block:: bash