create
The cldkctl registry tag create command creates a new tag immutability rule in the container registry. This rule helps prevent specific tags from being overwritten or deleted, protecting critical container images from accidental modification. It is commonly used to enforce image version stability.
Usage
cldkctl registry tag create [flags]Steps
Follow the steps below to run and view the result of this command:
Ensure that you are logged in. Refer to the Registry Login section.
Run the following command in your terminal:
./cldkctl --registry [registry name] registry tag create \
--repo [repository name] \
--repo-op [matching|excluding] \
--tag [tag pattern] \
--tag-op [matching|excluding]To get the list of available registries, refer to the Registry List section.
To get the list of available repositories, refer to the Registry Repo List section.
Replace
[registry name] with the target registry, [repository name] with the repository name you want to protect,[tag pattern]with the tag pattern to include or exclude, and[repo-op] / [tag-op]with the operation mode (matching or excluding).Once successful, the terminal displays "✓ Registry tag immutability rule created".

Flags
-h, --help
Help for the registry tag create command.
--repo string
Specifies the name or pattern of the repository where the rule will apply.
--repo-op string
Defines how the repository pattern should be interpreted. Use matching to apply the rule to repositories that fit the specified pattern, or excluding to exclude repositories that fit the pattern.
--tag string
Specifies the tag name or pattern that will be affected by the rule.
--tag-op string
Defines how the tag pattern should be applied. Use matching to include tags that fit the specified pattern, or excluding to exclude tags that fit the pattern.
Last updated
