Merge pull request #22906 from nshalman/patch-1

Clarification about 'docker build --build-arg'
(cherry picked from commit ce07eac570)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Vincent Demeester 2016-05-24 15:33:27 +02:00 committed by Sebastiaan van Stijn
parent 9114864ace
commit 4efcbf5784
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -298,6 +298,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
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
[Dockerfile reference](../builder.md).