You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fixtures/buildx_build.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,30 +9,30 @@ Start a build
9
9
10
10
### Options
11
11
12
-
| Name | Type | Default | Description |
13
-
|---|---|---|---|
14
-
|[`--add-host`](https://docs.docker.com/engine/reference/commandline/build/#add-entries-to-container-hosts-file---add-host)|`stringSlice`|| Add a custom host-to-IP mapping (format: `host:ip`) |
15
-
|`--allow`|`stringSlice`|| Allow extra privileged entitlement (e.g., `network.host`, `security.insecure`) |
16
-
|[`--build-arg`](https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg)|`stringArray`|| Set build-time variables |
17
-
|`--builder`|`string`|| Override the configured builder instance |
|[`--cgroup-parent`](https://docs.docker.com/engine/reference/commandline/build/#use-a-custom-parent-cgroup---cgroup-parent)|`string`|| Optional parent cgroup for the container |
21
-
|[`-f`](https://docs.docker.com/engine/reference/commandline/build/#specify-a-dockerfile--f), [`--file`](https://docs.docker.com/engine/reference/commandline/build/#specify-a-dockerfile--f)|`string`|| Name of the Dockerfile (default: `PATH/Dockerfile`) |
22
-
|`--iidfile`|`string`|| Write the image ID to the file |
23
-
|`--label`|`stringArray`|| Set metadata for an image |
24
-
|`--load`||| Shorthand for `--output=type=docker`|
25
-
|`--network`|`string`|`default`| Set the networking mode for the `RUN` instructions during build |
|`--platform`|`stringArray`| local | Set target platform for build |
28
-
|`--push`||| Shorthand for `--output=type=registry`|
29
-
|`-q`, `--quiet`||| Suppress the build output and print image ID on success |
30
-
|`--secret`|`stringArray`|| Secret file to expose to the build (format: `id=mysecret,src=/local/secret`) |
31
-
|`--shm-size`|`string`|| Size of `/dev/shm`|
32
-
|`--ssh`|`stringArray`|| SSH agent socket or keys to expose to the build<br>format: `default\|<id>[=<socket>\|<key>[,<key>]]`|
33
-
|[`-t`](https://docs.docker.com/engine/reference/commandline/build/#tag-an-image--t), [`--tag`](https://docs.docker.com/engine/reference/commandline/build/#tag-an-image--t)|`stringArray`|| Name and optionally a tag (format: `name:tag`) |
34
-
|[`--target`](https://docs.docker.com/engine/reference/commandline/build/#specifying-target-build-stage---target)|`string`|| Set the target build stage to build. |
|[`--add-host`](https://docs.docker.com/engine/reference/commandline/build/#add-entries-to-container-hosts-file---add-host)|`stringSlice`|| Add a custom host-to-IP mapping (format: `host:ip`)|
15
+
|`--allow`|`stringSlice`|| Allow extra privileged entitlement (e.g., `network.host`, `security.insecure`)|
16
+
|[`--build-arg`](https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg)|`stringArray`|| Set build-time variables|
17
+
|`--builder`|`string`|| Override the configured builder instance|
|[`--cgroup-parent`](https://docs.docker.com/engine/reference/commandline/build/#use-a-custom-parent-cgroup---cgroup-parent)|`string`|| Optional parent cgroup for the container|
21
+
|[`-f`](https://docs.docker.com/engine/reference/commandline/build/#specify-a-dockerfile--f), [`--file`](https://docs.docker.com/engine/reference/commandline/build/#specify-a-dockerfile--f)|`string`|| Name of the Dockerfile (default: `PATH/Dockerfile`)|
22
+
|`--iidfile`|`string`|| Write the image ID to the file|
23
+
|`--label`|`stringArray`|| Set metadata for an image|
24
+
|`--load`||| Shorthand for `--output=type=docker`|
25
+
|`--network`|`string`|`default`| Set the networking mode for the `RUN` instructions during build|
|`--platform`|`stringArray`| local | Set target platform for build|
28
+
|`--push`||| Shorthand for `--output=type=registry`|
29
+
|`-q`, `--quiet`||| Suppress the build output and print image ID on success|
30
+
|`--secret`|`stringArray`|| Secret file to expose to the build (format: `id=mysecret,src=/local/secret`)|
31
+
|`--shm-size`|`string`|| Size of `/dev/shm`|
32
+
|`--ssh`|`stringArray`|| SSH agent socket or keys to expose to the build<br>format: `default\|<id>[=<socket>\|<key>[,<key>]]`|
33
+
|[`-t`](https://docs.docker.com/engine/reference/commandline/build/#tag-an-image--t), [`--tag`](https://docs.docker.com/engine/reference/commandline/build/#tag-an-image--t)|`stringArray`|| Name and optionally a tag (format: `name:tag`)|
34
+
|[`--target`](https://docs.docker.com/engine/reference/commandline/build/#specifying-target-build-stage---target)|`string`|| Set the target build stage to build.|
0 commit comments