You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My issue is about the documentation content or website
Type of issue
Information is incorrect
Description
The manual page about build variables describes automatic inheritance of ARGs between stages, but this is nowhere mentioned in the Dockerfile reference.
An ARG instruction goes out of scope at the end of the build stage where it was defined. To use an argument in multiple stages, each stage must include the ARG instruction.
This can lead to confusion and unexpected behavior when relying on ARGs being scrubbed between stages.
Is this a docs issue?
Type of issue
Information is incorrect
Description
The manual page about build variables describes automatic inheritance of ARGs between stages, but this is nowhere mentioned in the Dockerfile reference.
Variable scoping: https://docs.docker.com/build/building/variables/#scoping
Dockerfile reference: https://docs.docker.com/reference/dockerfile/#scope
This can lead to confusion and unexpected behavior when relying on ARGs being scrubbed between stages.
Location
https://docs.docker.com/reference/dockerfile/#scope
Suggestion
Since the behavior described in the build variable manual matches what
docker build
does, it should also be mentioned in the Dockerfile reference.The text was updated successfully, but these errors were encountered: