Skip to content

docs: --load flag clarity#3421

Merged
crazy-max merged 1 commit intodocker:masterfrom
aevesdocker:ENGDOCS-2992
Sep 11, 2025
Merged

docs: --load flag clarity#3421
crazy-max merged 1 commit intodocker:masterfrom
aevesdocker:ENGDOCS-2992

Conversation

@aevesdocker
Copy link
Contributor

Fixes #3230

flags.StringArrayVarP(&options.files, "file", "f", []string{}, "Build definition file")
flags.BoolVar(&options.exportLoad, "load", false, `Shorthand for "--set=*.output=type=docker"`)
flags.BoolVar(&options.exportPush, "push", false, `Shorthand for "--set=*.output=type=registry"`)
flags.BoolVar(&options.exportLoad, "load", false, `Shorthand for "--set=*.output=type=docker". Conditional.`)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the shortest way I could think of doing it

Signed-off-by: aevesdocker <allie.sadler@docker.com>
Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

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

Awesome LGTM!

@crazy-max crazy-max added this to the v0.29.0 milestone Sep 11, 2025
@crazy-max crazy-max merged commit e540b7a into docker:master Sep 11, 2025
140 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.

--load and other cli flags regarding output behave different than expected

2 participants