diff --git a/compose/compose-file/compose-file-v2.md b/compose/compose-file/compose-file-v2.md index f6c356dab2..7f39f2d956 100644 --- a/compose/compose-file/compose-file-v2.md +++ b/compose/compose-file/compose-file-v2.md @@ -196,6 +196,10 @@ or a list: args: - buildno=1 - gitcommithash=cdc3b19 + +> **Note**: if you specify `ARG` in your Dockerfile befor the `FROM` instruction +> then the `ARG` will not be available in the buld instructions under `FROM` +> if you need a argument in both places simply place it again under the `FROM` instruction 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.