Skip to content

Commit 805c377

Browse files
authored
Merge pull request #3454 from jsternberg/buildx-tag-help
docs: clarify cli help for the `--tag` option
2 parents f478741 + ec01355 commit 805c377

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

commands/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions, debugger debuggerOpt
551551

552552
flags.StringArrayVar(&options.ssh, "ssh", []string{}, `SSH agent socket or keys to expose to the build (format: "default|<id>[=<socket>|<key>[,<key>]]")`)
553553

554-
flags.StringArrayVarP(&options.tags, "tag", "t", []string{}, `Name and optionally a tag (format: "name:tag")`)
554+
flags.StringArrayVarP(&options.tags, "tag", "t", []string{}, `Image identifier (format: "[registry/]repository[:tag]")`)
555555

556556
flags.StringVar(&options.target, "target", "", "Set the target build stage to build")
557557

docs/reference/buildx_build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Start a build
4747
| [`--secret`](#secret) | `stringArray` | | Secret to expose to the build (format: `id=mysecret[,src=/local/secret]`) |
4848
| [`--shm-size`](#shm-size) | `bytes` | `0` | Shared memory size for build containers |
4949
| [`--ssh`](#ssh) | `stringArray` | | SSH agent socket or keys to expose to the build (format: `default\|<id>[=<socket>\|<key>[,<key>]]`) |
50-
| [`-t`](#tag), [`--tag`](#tag) | `stringArray` | | Name and optionally a tag (format: `name:tag`) |
50+
| [`-t`](#tag), [`--tag`](#tag) | `stringArray` | | Image identifier (format: `[registry/]repository[:tag]`) |
5151
| [`--target`](#target) | `string` | | Set the target build stage to build |
5252
| [`--ulimit`](#ulimit) | `ulimit` | | Ulimit options |
5353

docs/reference/buildx_dap_build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Start a build
3939
| `--secret` | `stringArray` | | Secret to expose to the build (format: `id=mysecret[,src=/local/secret]`) |
4040
| `--shm-size` | `bytes` | `0` | Shared memory size for build containers |
4141
| `--ssh` | `stringArray` | | SSH agent socket or keys to expose to the build (format: `default\|<id>[=<socket>\|<key>[,<key>]]`) |
42-
| `-t`, `--tag` | `stringArray` | | Name and optionally a tag (format: `name:tag`) |
42+
| `-t`, `--tag` | `stringArray` | | Image identifier (format: `[registry/]repository[:tag]`) |
4343
| `--target` | `string` | | Set the target build stage to build |
4444
| `--ulimit` | `ulimit` | | Ulimit options |
4545

docs/reference/buildx_debug_build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Start a build
4343
| `--secret` | `stringArray` | | Secret to expose to the build (format: `id=mysecret[,src=/local/secret]`) |
4444
| `--shm-size` | `bytes` | `0` | Shared memory size for build containers |
4545
| `--ssh` | `stringArray` | | SSH agent socket or keys to expose to the build (format: `default\|<id>[=<socket>\|<key>[,<key>]]`) |
46-
| `-t`, `--tag` | `stringArray` | | Name and optionally a tag (format: `name:tag`) |
46+
| `-t`, `--tag` | `stringArray` | | Image identifier (format: `[registry/]repository[:tag]`) |
4747
| `--target` | `string` | | Set the target build stage to build |
4848
| `--ulimit` | `ulimit` | | Ulimit options |
4949

0 commit comments

Comments
 (0)