Clarification about 'docker build --build-arg'

See #22860

Signed-off-by: Nahum Shalman <nshalman@omniti.com>
master
Nahum Shalman 2016-05-23 10:01:59 -04:00 committed by Tibor Vass
parent c27c6d1a4e
commit b47dd5295d
1 changed files with 3 additions and 0 deletions

View File

@ -299,6 +299,9 @@ accessed like regular environment variables in the `RUN` instruction of the
Dockerfile. Also, these values don't persist in the intermediate or final images Dockerfile. Also, these values don't persist in the intermediate or final images
like `ENV` values do. like `ENV` values do.
Using this flag will not alter the output you see when the `ARG` lines from the
Dockerfile are echoed during the build process.
For detailed information on using `ARG` and `ENV` instructions, see the For detailed information on using `ARG` and `ENV` instructions, see the
[Dockerfile reference](../builder.md). [Dockerfile reference](../builder.md).