Registry v2: Accessing the Registry
Use this page to access Registry v2 from inside the cluster, from external clients, and through the ACP Image API.
TOC
PrerequisitesGrant Namespace PermissionsAccess the Registry from Inside the ClusterAuthenticate an External OCI ClientPush and Pull ImagesQuery Image API ResourcesDelete Image ReferencesCheck Registry Pods, Logs, and MetricsPrerequisites
- The Registry Operator is installed.
Config/clusterisManaged.image-registry,image-api-server, andnode-caare ready.- The current user or ServiceAccount has the required namespace permissions.
Grant Namespace Permissions
Grant pull permission to a user:
Grant push permission to a user:
Grant pull permission to a ServiceAccount in another namespace:
Registry v2 uses ImageStream layer authorization:
Access the Registry from Inside the Cluster
Use the internal service address for workloads inside the cluster:
Example workload image reference:
For a custom ServiceAccount, grant pull permission in the image namespace and let the Operator inject the managed pull Secret:
Authenticate an External OCI Client
For external access, log in with an ACP account that has namespace permissions:
If the Registry uses a private CA or an HTTP endpoint in a non-production test environment, configure the client trust or use the client's insecure-registry option.
Push and Pull Images
Tag and push an image:
Pull by tag:
Pull by digest:
Query Image API Resources
List ImageStreams:
Show one ImageStream:
Show the current and historical digest for a tag:
Show the Image metadata for a digest:
List Registry HTTP image repositories visible to the current user:
Delete Image References
Preview deletion first:
Confirm deletion:
Deletion removes image metadata references. Run prune and GC separately when you need storage reclamation.
Check Registry Pods, Logs, and Metrics
Check Registry Pods:
View Registry logs:
Check metrics access from a monitoring ServiceAccount: