Specify ENV variables are also used for CMD.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Upstream-commit: 66387aee5970a9b100f0d14612d7b7726eaf7b9d Component: engine
This commit is contained in:
committed by
Michael Crosby
parent
5bab4d3f4f
commit
1f0a72e010
@@ -120,7 +120,8 @@ or
|
||||
**ENV**
|
||||
--**ENV <key> <value>**
|
||||
The ENV instruction sets the environment variable <key> to
|
||||
the value <value>. This value is passed to all future RUN instructions. This is
|
||||
the value <value>. This value is passed to all future
|
||||
RUN, ENTRYPOINT, and CMD instructions. This is
|
||||
functionally equivalent to prefixing the command with **<key>=<value>**. The
|
||||
environment variables that are set with ENV persist when a container is run
|
||||
from the resulting image. Use docker inspect to inspect these values, and
|
||||
|
||||
@@ -349,7 +349,8 @@ accessible from the host by default. To expose ports to the host, at runtime,
|
||||
ENV <key>=<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>`
|
||||
|
||||
The `ENV` instruction has two forms. The first form, `ENV <key> <value>`,
|
||||
|
||||
Reference in New Issue
Block a user