gcloud alpha artifacts docker - manage Artifact Registry container images and tags
gcloud alpha artifacts docker GROUP [GCLOUD_WIDE_FLAG ...]
(ALPHA) To list images under repository my-repo, project my-project, in us-central1:
$ gcloud alpha artifacts docker images list \ us-central1-docker.pkg.dev/my-project/my-repo
To delete image busy-box in us-west1 and all of its digests and tags:
$ gcloud alpha artifacts docker images delete us-west1-docker.pkg.dev/my-project/my-repository/busy-box
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 delete tag my-tag from image busy-box in us-west1:
$ gcloud alpha artifacts docker tags delete us-west1-docker.pkg.dev/my-project/my-repository/busy-box:my-tag
To list tags for image busy-box in us-west1:
$ gcloud alpha artifacts docker tags list us-west1-docker.pkg.dev/my-project/my-repository/busy-box
These flags are available to all commands: --help.
Run $ gcloud help for details.
GROUP is one of the following:
- images
(ALPHA) Manage Artifact Registry container images.
- tags
(ALPHA) Manage Artifact Registry container image tags.
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
$ gcloud beta artifacts docker