gcloud artifacts docker tags - manage Artifact Registry container image tags
gcloud artifacts docker tags COMMAND [GCLOUD_WIDE_FLAG ...]
To add tag my-tag to image busy-box referenced by digest abcxyz in us-west1:
$ gcloud artifacts docker tags 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 artifacts docker tags \ 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
To delete tag my-tag from image busy-box in us-west1:
$ gcloud artifacts docker tags \ us-west1-docker.pkg.dev/my-project/my-repository/busy-box:my-tag
To list all tags in repository my-repository in us-west1:
$ gcloud artifacts docker tags \ us-west1-docker.pkg.dev/my-project/my-repository
To list tags for image busy-box in us-west1:
$ gcloud artifacts docker tags \ us-west1-docker.pkg.dev/my-project/my-repository/busy-box
These flags are available to all commands: --help.
Run $ gcloud help for details.
COMMAND is one of the following:
- add
Add a tag to a container image in Artifact Registry.
- delete
Delete a tag from a container image in Artifact Registry.
- list
List all tags associated with a container image in Artifact Registry.
These variants are also available:
$ gcloud alpha artifacts docker tags
$ gcloud beta artifacts docker tags