Registry v2: Managing Images with ac
Use the latest ac image commands to work with Registry v2 and the Image API. Registry v2 is selected by modern registry mode and provides Image and ImageStream workflows for clusters. Compatibility entry points remain available for environments that still use the legacy Registry.
TOC
Registry ModeCommand GroupsDiscover and Log In to the RegistryManage ImageStreamsQuery Images and ImageStreamsDelete Image ReferencesWork with OCI Images DirectlyRegistry Mode
ac selects the image backend from the current cluster's registry mode:
Check and set the mode:
Use modern mode before managing ImageStreams, importing images, tagging images, or viewing Image API usage through the Registry v2 Image API graph.
Command Groups
Administrative usage reporting, cleanup, and trust verification are documented in Managing Registry v2 access and cleanup.
Discover and Log In to the Registry
Print the Registry host selected by the current registry mode:
Print the internal host:
Check that the Registry /v2/ endpoint is reachable:
Write Registry credentials to the default Docker config file:
Write credentials to a temporary or CI auth file:
Use --skip-check when the registry endpoint is not reachable from the current machine but the credential file still needs to be written. Use --insecure only when the endpoint is HTTP or uses a certificate that the client does not trust.
Manage ImageStreams
Create an empty ImageStream:
Create an ImageStream with local image lookup enabled:
Create an ImageStreamTag from an external image:
Import an external image into an ImageStreamTag. Without --confirm, the command previews the import. Add --confirm to persist the tag:
Common import options:
Tag an external container image into an ImageStreamTag:
Copy the current image behind one ImageStreamTag to another:
Delete a tag:
Enable local image lookup for one ImageStream:
Disable local image lookup:
List local lookup state:
Query Images and ImageStreams
List ImageStreams:
Show an ImageStream:
Show the current digest and tag history for a tag:
Show ImageStreamImage metadata by digest:
List images through the integrated Registry compatibility entry point:
In modern mode, ac get images lists cluster-scoped Image resources with NAME and IMAGE REFERENCE columns. In legacy mode, it keeps the old Registry catalog output and lists repository tags.
Use structured output:
Legacy-only options remain available for compatibility:
Delete Image References
The preferred Registry v2 workflow is to delete ImageStream tags:
The compatibility command ac delete images also follows the selected registry mode. It is a dry run unless --confirm is set:
Use repeated --repo flags to delete multiple tag references:
Deleting image references does not necessarily release blob storage immediately. Run image pruning and registry garbage collection separately when storage reclamation is required.
Work with OCI Images Directly
Show image metadata from a registry:
Select one platform from a multi-architecture image:
Show manifest list entries:
Copy one image to another tag:
Copy multiple images from a mapping file:
Add layers or metadata to an image and push the result:
Preview the append operation:
Extract files from an image without a local container runtime:
Use --insecure on ac image commands only for test registries, HTTP endpoints, or private certificates that are not trusted by the client.