Skip to content

Commit

Permalink
Merge pull request moby#9957 from crosbymichael/envars
Browse files Browse the repository at this point in the history
Specify ENV variables are also used for CMD.
  • Loading branch information
crosbymichael committed Jan 7, 2015
2 parents f65b781 + 66387ae commit 11e4799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/man/Dockerfile.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/sources/reference/builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>`,
Expand Down

0 comments on commit 11e4799

Please sign in to comment.