mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Link to ARG and FROM interaction section
This commit is contained in:
@@ -198,8 +198,8 @@ or a list:
|
||||
- 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.
|
||||
|
||||
Reference in New Issue
Block a user