Skip to content

Clarify what the ARG instruction actually does during build#6411

Merged
tonistiigi merged 1 commit intomoby:masterfrom
homm:clearify-ARG-instruction
Dec 15, 2025
Merged

Clarify what the ARG instruction actually does during build#6411
tonistiigi merged 1 commit intomoby:masterfrom
homm:clearify-ARG-instruction

Conversation

@homm
Copy link
Contributor

@homm homm commented Dec 11, 2025

Previously, the section described:

  • how to declare an ARG,
  • how to provide default values,
  • how users can override it using --build-arg,
  • and how its scope is limited to the build stage.

However, the documentation never explicitly stated how ARG behaves inside the build process.

This change improves the ARG documentation by explaining what the instruction actually does during a Docker build.

Signed-off-by: Aleksandr Karpinskii <homm86@gmail.com>
@homm homm force-pushed the clearify-ARG-instruction branch from 5100599 to bb7274e Compare December 11, 2025 15:13
@tonistiigi tonistiigi requested a review from dvdksn December 11, 2025 17:00
Copy link
Collaborator

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! ❤️

@tonistiigi tonistiigi merged commit 79b833a into moby:master Dec 15, 2025
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants