@@ -205,7 +205,7 @@ options:
205205 swarm : false
206206 - option : iidfile
207207 value_type : string
208- description : Write the image ID to the file
208+ description : Write the image ID to a file
209209 deprecated : false
210210 hidden : false
211211 experimental : false
@@ -264,7 +264,7 @@ options:
264264 swarm : false
265265 - option : metadata-file
266266 value_type : string
267- description : Write build result metadata to the file
267+ description : Write build result metadata to a file
268268 details_url : ' #metadata-file'
269269 deprecated : false
270270 hidden : false
@@ -773,7 +773,7 @@ examples: |-
773773 Shorthand for [`--output=type=docker`](#docker). Will automatically load the
774774 single-platform build result to `docker images`.
775775
776- ### Write build result metadata to the file (--metadata-file) {#metadata-file}
776+ ### Write build result metadata to a file (--metadata-file) {#metadata-file}
777777
778778 To output build metadata such as the image digest, pass the `--metadata-file` flag.
779779 The metadata will be written as a JSON object to the specified file. The
@@ -786,6 +786,7 @@ examples: |-
786786
787787 ```json
788788 {
789+ "buildx.build.provenance": {},
789790 "buildx.build.ref": "mybuilder/mybuilder0/0fjb6ubs52xx3vygf6fgdl611",
790791 "containerimage.config.digest": "sha256:2937f66a9722f7f4a2df583de2f8cb97fc9196059a410e7f00072fc918930e66",
791792 "containerimage.descriptor": {
@@ -801,6 +802,15 @@ examples: |-
801802 }
802803 ```
803804
805+ > **Note**
806+ >
807+ > Build record [provenance](/build/attestations/slsa-provenance/#provenance-attestation-example)
808+ > (`buildx.build.provenance`) includes minimal provenance by default. Set the
809+ > `BUILDX_METADATA_PROVENANCE` environment variable to customize this behavior:
810+ > * `min` sets minimal provenance (default).
811+ > * `max` sets full provenance.
812+ > * `disabled`, `false` or `0` does not set any provenance.
813+
804814 ### Ignore build cache for specific stages (--no-cache-filter) {#no-cache-filter}
805815
806816 The `--no-cache-filter` lets you specify one or more stages of a multi-stage
@@ -877,7 +887,7 @@ examples: |-
877887 ```console
878888 $ docker buildx build -o . .
879889 $ docker buildx build -o outdir .
880- $ docker buildx build -o - - > out.tar
890+ $ docker buildx build -o - . > out.tar
881891 $ docker buildx build -o type=docker .
882892 $ docker buildx build -o type=docker,dest=- . > myimage.tar
883893 $ docker buildx build -t tonistiigi/foo -o type=registry
@@ -1074,10 +1084,18 @@ examples: |-
10741084 --secret=[type=TYPE[,KEY=VALUE]
10751085 ```
10761086
1077- Exposes secret to the build. The secret can be used by the build using
1078- [`RUN --mount=type=secret` mount](/reference/dockerfile/#run---mounttypesecret).
1087+ Exposes secrets (authentication credentials, tokens) to the build.
1088+ A secret can be mounted into the build using a `RUN --mount=type=secret` mount in the
1089+ [Dockerfile](/reference/dockerfile/#run---mounttypesecret).
1090+ For more information about how to use build secrets, see
1091+ [Build secrets](/build/building/secrets/).
1092+
1093+ Supported types are:
1094+
1095+ - [`file`](#file)
1096+ - [`env`](#env)
10791097
1080- If `type` is unset it will be detected. Supported types are:
1098+ Buildx attempts to detect the `type` automatically if unset.
10811099
10821100 #### `file`
10831101
0 commit comments