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
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 
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 help for details.

NOTES
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist. These variants are also available:
  gcloud  
artifacts  
docker  
tags  
add 
 
  gcloud  
beta  
artifacts  
docker  
tags  
add 
 
Create a Mobile Website
View Site in Mobile | Classic
Share by: