gcloud alpha artifacts docker tags add

NAME
gcloud alpha artifacts docker tags add - add a tag to a container image in Artifact Registry
SYNOPSIS
gcloud alpha artifacts docker tags add DOCKER_IMAGE DOCKER_TAG [GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) 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
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: --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.

EXAMPLES
To add tag my-tag to image busy-box referenced by digest abcxyz in us-west1:
  $ gcloud alpha 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-tag

To add tag my-tag to image busy-box referenced by tag latest in us-west1:

  $ gcloud alpha 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
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access whitelist.