docs: add a link from the cli reference to the bake file reference for variables#3521
Closed
jsternberg wants to merge 1 commit intodocker:masterfrom
Closed
docs: add a link from the cli reference to the bake file reference for variables#3521jsternberg wants to merge 1 commit intodocker:masterfrom
jsternberg wants to merge 1 commit intodocker:masterfrom
Conversation
…r variables I spent some time looking how to override a variable in a bakefile. My assumption was that there would be a CLI option to do that and was confused when I couldn't find it. This adds a reference to point someone in the correct direction of using environment variables which is present in the bake file reference but isn't in the CLI documentation. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
dvdksn
reviewed
Nov 14, 2025
| > [!NOTE] | ||
| > ¹ These fields already append by default. | ||
|
|
||
| ### <a name="variables"></a> Override variables in a Bake file |
Contributor
There was a problem hiding this comment.
We typically only include an anchor if the section corresponds to a flag/option on the command. That isn't the case here so we can remove this.
Suggested change
| ### <a name="variables"></a> Override variables in a Bake file | |
| ### Override variables in a Bake file |
Collaborator
Author
|
A formal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I spent some time looking how to override a variable in a bakefile. My
assumption was that there would be a CLI option to do that and was
confused when I couldn't find it. This adds a reference to point someone
in the correct direction of using environment variables which is present
in the bake file reference but isn't in the CLI documentation.