Getting an Image's Details
Find out how to get details of an image in a repository in Container Registry.
To make sure you pull the correct image or to identify images that you no longer need, you can get detailed information about the images in Container Registry.
When using the CLI and the API, you can use the image OCID or the image URI to identify the image that you want to get information about.
Your permissions control which images you can get information about (see Policies to Control Repository Access). You can get information about images in repositories that you've created, and in repositories that the groups to which you belong have been granted access by IAM policies. If you belong to the Administrators group, you can get information about images in any repository in the tenancy.
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Using the image's OCID to get image details:
Use the oci artifacts container image get command and required parameters to get details of an image:
oci artifacts container image get --image-id <image-ocid> [OPTIONS]For example:oci artifacts container image get --image-id ocid1.containerimage.oc1.phx.0.ansh81vru1zp.aaaaaaaalqzjyks...Using the image's URI to get image details:
Use the oci artifacts container image lookup command and required parameters to get details of an image:
oci artifacts container image lookup --image-uri <image-uri> [OPTIONS]where
image-uriidentifies a particular image in a registry, and includes a version identifier, or an image digest, or both. Note thatimage-uridoes not include a registry domain.For example:
oci artifacts container image lookup --image-uri ansh81vru1zp/project01/acme-web-app:v2.0.testoci artifacts container image lookup --image-uri ansh81vru1zp/project01/acme-web-app@sha256:abcd1234efgh5678...oci artifacts container image lookup --image-uri ansh81vru1zp/project01/acme-web-app:v2.0.test@sha256:abcd1234efgh5678...To use the image's OCID to get image details, run the GetContainerImage operation.
To use the image's URI to get image details, run the LookupContainerImageByUri operation.