mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-19 09:48:03 +08:00
docs: standardize format for usage
Use the usage output of `--help` for each subcommand, to make sure all flags/options are included on the page, and to make it easier to keep docs in sync. Note that the usage output is only used when reading these docs on GitHub; docs.docker.com only consumes the "description" and "example" sections (when present), and generates flag information and usage output from source Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -1,22 +1,24 @@
|
||||
# `buildx bake [OPTIONS] [TARGET...]`
|
||||
# buildx bake
|
||||
|
||||
Bake is a high-level build command.
|
||||
```
|
||||
Usage: docker buildx bake [OPTIONS] [TARGET...]
|
||||
|
||||
Each specified target will run in parallel as part of the build.
|
||||
Build from a file
|
||||
|
||||
Aliases:
|
||||
bake, f
|
||||
|
||||
Options:
|
||||
|
||||
| Flag | Description |
|
||||
| --- | --- |
|
||||
| -f, --file stringArray | Build definition file
|
||||
| --load | Shorthand for --set=*.output=type=docker
|
||||
| --no-cache | Do not use cache when building the image
|
||||
| --print | Print the options without building
|
||||
| --progress string | Set type of progress output (auto, plain, tty). Use plain to show container output (default "auto")
|
||||
| --pull | Always attempt to pull a newer version of the image
|
||||
| --push | Shorthand for --set=*.output=type=registry
|
||||
| --set stringArray | Override target value (eg: targetpattern.key=value)
|
||||
|
||||
--builder string Override the configured builder instance
|
||||
-f, --file stringArray Build definition file
|
||||
--load Shorthand for --set=*.output=type=docker
|
||||
--no-cache Do not use cache when building the image
|
||||
--print Print the options without building
|
||||
--progress string Set type of progress output (auto, plain, tty). Use plain to show container output (default "auto")
|
||||
--pull Always attempt to pull a newer version of the image
|
||||
--push Shorthand for --set=*.output=type=registry
|
||||
--set stringArray Override target value (eg: targetpattern.key=value)
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
|
Reference in New Issue
Block a user