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
|[`--cgroup-parent string`](https://docs.docker.com/engine/reference/commandline/build/#use-a-custom-parent-cgroup---cgroup-parent)| Optional parent cgroup for the container |
21
-
|[`-f`](https://docs.docker.com/engine/reference/commandline/build/#specify-a-dockerfile--f), [`--file string`](https://docs.docker.com/engine/reference/commandline/build/#specify-a-dockerfile--f)| Name of the Dockerfile (default: `PATH/Dockerfile`) |
22
-
|`--iidfilestring`| Write the image ID to the file |
23
-
|`--labelstringArray`| Set metadata for an image |
24
-
|`--load`| Shorthand for `--output=type=docker`|
25
-
|`--networkstring`| Set the networking mode for the `RUN` instructions during build |
|`--platformstringArray`| 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
-
|`--secretstringArray`| Secret file to expose to the build (format: `id=mysecret,src=/local/secret`) |
31
-
|`--shm-sizestring`| Size of `/dev/shm`|
32
-
|`--sshstringArray`| SSH agent socket or keys to expose to the build (format: `default\|<id>[=<socket>\|<key>[,<key>]]`) |
33
-
|[`-t`](https://docs.docker.com/engine/reference/commandline/build/#tag-an-image--t), [`--tag stringArray`](https://docs.docker.com/engine/reference/commandline/build/#tag-an-image--t)| Name and optionally a tag (format: `name:tag`) |
34
-
|[`--target string`](https://docs.docker.com/engine/reference/commandline/build/#specifying-target-build-stage---target)| Set the target build stage to build. |
35
-
|`--ulimitstring`| Ulimit options |
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 (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