mirror of https://github.com/docker/cli.git
Specify ENV variables are also used for CMD.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
350d2e33b7
commit
fbe252581a
|
@ -349,7 +349,8 @@ accessible from the host by default. To expose ports to the host, at runtime,
|
||||||
ENV <key>=<value> ...
|
ENV <key>=<value> ...
|
||||||
|
|
||||||
The `ENV` instruction sets the environment variable `<key>` to the value
|
The `ENV` instruction sets the environment variable `<key>` to the value
|
||||||
`<value>`. This value will be passed to all future `RUN` instructions. This is
|
`<value>`. This value will be passed to all future
|
||||||
|
`RUN`, `ENTRYPOINT`, and `CMD` instructions. This is
|
||||||
functionally equivalent to prefixing the command with `<key>=<value>`
|
functionally equivalent to prefixing the command with `<key>=<value>`
|
||||||
|
|
||||||
The `ENV` instruction has two forms. The first form, `ENV <key> <value>`,
|
The `ENV` instruction has two forms. The first form, `ENV <key> <value>`,
|
||||||
|
|
Loading…
Reference in New Issue