Registry v2: Managing Images with ac
Use the latest ac image commands to work with Registry v2 and the ACP Image API. Registry v2 is the Operator-deployed ACP Registry selected by modern registry mode. These commands provide OCP-style Image and ImageStream workflows while keeping compatibility entry points for clusters that are still switching from the legacy Registry.
TOC
Registry ModeCommand GroupsDiscover and Log In to the RegistryManage ImageStreamsQuery Images and ImageStreamsDelete Image ReferencesWork with OCI Images DirectlyView Usage and Clean UpRegistry Mode
ac selects the image backend from the current cluster's registry mode:
Check and set the mode:
Use the modern mode before running commands that manage ImageStreams, import images, tag images, show Image API usage, verify signatures, or prune through the Registry v2 Image API graph.
Command Groups
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 migration 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 aligns with oc get images and lists cluster-scoped Image resources with NAME and IMAGE REFERENCE columns. In legacy mode, it keeps the old ACP Registry catalog output and lists repository tags.
Use structured output:
Legacy-only options remain available for migration and compatibility:
Delete Image References
The preferred Registry v2 workflow is to delete ImageStream tags:
The compatibility command ac delete images also works from 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.
View Usage and Clean Up
Show storage and usage statistics for Images:
Show storage and usage statistics for ImageStreams:
Verify image signature identity recorded on an Image object:
Save trusted conditions back to the Image object:
Preview image pruning:
Run pruning after reviewing the dry-run output:
Exclude repositories with a whitelist:
Run Registry garbage collection after metadata cleanup:
You can also trigger Registry GC as part of pruning:
Both ac adm prune images and ac adm registry gc are dry-run by default. Always review the preview before adding --confirm.