Merge pull request #8246 from frank-dspeed/patch-1

Update index.md
This commit is contained in:
Maria Bermudez 2019-03-18 12:02:08 -07:00 committed by GitHub
commit 755ac92c05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -196,6 +196,10 @@ or a list:
args:
- buildno=1
- gitcommithash=cdc3b19
> **Note**: In your Dockerfile, if you specify `ARG` before the `FROM` instruction,
> If you need an argument to be available in both places, also specify it under the `FROM` instruction.
> See [Understand how ARGS and FROM interact](/engine/reference/builder/#understand-how-arg-and-from-interact) for usage details.
You can omit the value when specifying a build argument, in which case its value
at build time is the value in the environment where Compose is running.

View File

@ -267,6 +267,11 @@ or a list:
- buildno=1
- gitcommithash=cdc3b19
> **Note**: In your Dockerfile, if you specify `ARG` before the `FROM` instruction,
> `ARG` is not available in the build instructions under `FROM`.
> If you need an argument to be available in both places, also specify it under the `FROM` instruction.
> See [Understand how ARGS and FROM interact](/engine/reference/builder/#understand-how-arg-and-from-interact) for usage details.
You can omit the value when specifying a build argument, in which case its value
at build time is the value in the environment where Compose is running.