gcloud beta container images add-tag

NAME
gcloud beta container images add-tag - adds tags to existing image
SYNOPSIS
gcloud beta container images add-tagSRC_IMAGEDEST_IMAGE[DEST_IMAGE …][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) The container images add-tag command adds the tag(s)specified in the second (and following) tag parameter(s) to the image referencedin the first tag parameter. Repositories must be hosted by the Google ContainerRegistry.
EXAMPLES
Add a tag to another tag:
gcloudbetacontainerimagesadd-taggcr.io/myproject/myimage:mytag1gcr.io/myproject/myimage:mytag2

Add a tag to a digest

gcloudbetacontainerimagesadd-taggcr.io/myproject/myimage@sha256:digestgcr.io/myproject/myimage:mytag2

Add a tag to latest

gcloudbetacontainerimagesadd-taggcr.io/myproject/myimagegcr.io/myproject/myimage:mytag2

Promote a tag to latest

gcloudbetacontainerimagesadd-taggcr.io/myproject/myimage:mytag1gcr.io/myproject/myimage:latest
POSITIONAL ARGUMENTS
SRC_IMAGE
The fully qualified name(s) of image(s) to add tags for. The name(s) should beformatted as *.gcr.io/PROJECT_ID/IMAGE_PATH@sha256:DIGEST or*.gcr.io/PROJECT_ID/IMAGE_PATH:TAG.
DEST_IMAGE [DEST_IMAGE …]
The fully qualified name(s) of image(s) to be the new tags. The name(s) shouldbe formatted as *.gcr.io/PROJECT_ID/IMAGE_PATH:TAG.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

NOTES
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcontainerimagesadd-tag
gcloudalphacontainerimagesadd-tag

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.