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
buildxBuildFlags.Bool("compress", false, "Compress the build context using gzip")
138
+
buildxBuildFlags.SetAnnotation("security-opt", "flag-warn", []string{`security-opt flag is deprecated. "RUN --security=insecure" should be used with BuildKit.`})
139
+
140
+
buildxBuildFlags.BoolVar(&ignoreBool, "squash", false, "Squash newly built layers into a single new layer")
141
+
buildxBuildFlags.MarkHidden("squash")
142
+
buildxBuildFlags.SetAnnotation("squash", "flag-warn", []string{"experimental flag squash is removed with BuildKit. You should squash inside build using a multi-stage Dockerfile for efficiency."})
|`--compress`|Compress the build context using gzip|
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 is 'PATH/Dockerfile') |
|[`--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
22
|`--iidfile string`| Write the image ID to the file |
23
23
|`--label stringArray`| Set metadata for an image |
24
-
|`--load`| Shorthand for --output=type=docker |
25
-
|`--network string`| Set the networking mode for the RUN instructions during build |
|`--platform stringArray`| Set target platform for build |
28
-
|`--push`| Shorthand for --output=type=registry |
29
-
|`--secret stringArray`| Secret file to expose to the build: id=mysecret,src=/local/secret |
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`|
30
32
|`--ssh stringArray`| SSH agent socket or keys to expose to the build (format: `default\|<id>[=<socket>\|<key>[,<key>]]`) |
31
-
|[`-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 in the 'name:tag' format|
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`)|
32
34
|[`--target string`](https://docs.docker.com/engine/reference/commandline/build/#specifying-target-build-stage---target)| Set the target build stage to build. |
0 commit comments