- NAME
-
- gcloud artifacts docker tags add - add a tag to a container image in Artifact Registry
- SYNOPSIS
-
-
gcloud artifacts docker tags addDOCKER_IMAGEDOCKER_TAG[GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
Create or update a tag for a container image in Artifact Registry.
A valid Docker tag has the format of
LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY-ID/IMAGE:tag
A valid container image that can be referenced by tag or digest, has the format of
LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY-ID/IMAGE:tag LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY-ID/IMAGE@sha256:digest
- EXAMPLES
-
To add tag
my-tagto imagebusy-boxreferenced by digestabcxyzinus-west1:gcloud artifacts docker tags add us-west1-docker.pkg.dev/my-project/my-repository/busy-box@sha256:abcxyz us-west1-docker.pkg.dev/my-project/my-repository/busy-box:my-tagTo add tag
my-tagto imagebusy-boxreferenced by taglatestinus-west1:gcloud artifacts docker tags add us-west1-docker.pkg.dev/my-project/my-repository/busy-box:latest us-west1-docker.pkg.dev/my-project/my-repository/busy-box:my-tag - POSITIONAL ARGUMENTS
-
DOCKER_IMAGE-
Docker image - The container image that you want to tag.
A valid container image can be referenced by tag or digest, has the format of LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY-ID/IMAGE:tag LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY-ID/IMAGE@sha256:digest
DOCKER_TAG-
Image tag - The container image tag.
A valid Docker tag has the format of LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY-ID/IMAGE: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 helpfor details. - NOTES
-
These variants are also available:
gcloud alpha artifacts docker tags addgcloud beta artifacts docker tags add
gcloud artifacts docker tags add
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.