gcloud_alpha_container_images_add-tag (1)
NAME
- gcloud alpha container images add-tag - adds tags to existing image
SYNOPSIS
-
gcloud alpha container images add-tag SRC_IMAGE DEST_IMAGE [DEST_IMAGE ...] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) The container images add-tag command adds the tag(s) specified in
POSITIONAL ARGUMENTS
-
- SRC_IMAGE
-
The fully qualified name(s) of image(s) to add tags for. The name(s) should be
formatted as *.gcr.io/PROJECT_ID/IMAGE_PATH@sha256:DIGEST or
*.gcr.io/PROJECT_ID/IMAGE_PATH:TAG.
- DEST_IMAGE [DEST_IMAGE ...]
-
The fully qualified name(s) of image(s) to be the new tags. The name(s) should
be formatted as *.gcr.io/PROJECT_ID/IMAGE_PATH:TAG.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
Add a tag to another tag:
-
$ gcloud alpha container images add-tag \
gcr.io/myproject/myimage:mytag1
gcr.io/myproject/myimage:mytag2
Add a tag to a digest
-
$ gcloud alpha container images add-tag \
gcr.io/myproject/myimage@sha256:digest
gcr.io/myproject/myimage:mytag2
Add a tag to latest
-
$ gcloud alpha container images add-tag gcr.io/myproject/myimage
gcr.io/myproject/myimage:mytag2
Promote a tag to latest
-
$ gcloud alpha container images add-tag \
gcr.io/myproject/myimage:mytag1
gcr.io/myproject/myimage:latest
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 will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud container images add-tag $ gcloud beta container images add-tag