class ImagesManager
Methods
__aiter__()
__call__()
Maximum number of images to return. None returns all.
Filter by image kind.
If True, return only tagged images.
Return images created after this time. Accepts datetime or timedelta relative to now.
Return images created before this time. Accepts datetime or timedelta relative to now.
List of images matching the given filters.
docker()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.Tag override; if provided, replaces the tag from the reference.
Registry username for authenticated imports.
Registry password for authenticated imports.
Maximum seconds to wait for the import operation.
Resolved or imported image object.
raises
NotFoundError – If ref is a UUID and the image does not exist.
import_from()
str |
OCIReferenceOCI reference string or OCIReference pointing to the source image.Tag to assign to the imported image. Defaults to the tag in the reference.
Registry username for private registries.
Registry password for private registries.
Maximum seconds to wait for the import operation.
Imported image object.
raises
ValueError – If image is a UUID or credentials are incomplete.
raises
FailedOperationError – If the import operation completes without returning an image.
oci()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.Tag override; if provided, replaces the tag from the reference.
Registry username for authenticated imports.
Registry password for authenticated imports.
Maximum seconds to wait for the import operation.
Resolved or imported image object.
raises
NotFoundError – If ref is a UUID and the image does not exist.
podman()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.Tag override; if provided, replaces the tag from the reference.
Registry username for authenticated imports.
Registry password for authenticated imports.
Maximum seconds to wait for the import operation.
Resolved or imported image object.
raises
NotFoundError – If ref is a UUID and the image does not exist.
pull()
pull_by_oci()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.Tag override; if provided, replaces the tag from the reference.
Registry username for authenticated imports.
Registry password for authenticated imports.
Maximum seconds to wait for the import operation.
Resolved or imported image object.
raises
NotFoundError – If ref is a UUID and the image does not exist.
use()
str | UUID |
OCIReferenceImage identifier — UUID, OCI reference string, or OCIReference object.If True, verify the image exists by fetching it from the API.
Image object corresponding to the given reference.
class ImagesManagerSync
Methods
__call__()
Maximum number of images to return. None returns all.
Filter by image kind.
If True, return only tagged images.
Return images created after this time. Accepts datetime or timedelta relative to now.
Return images created before this time. Accepts datetime or timedelta relative to now.
List of images matching the given filters.
__iter__()
docker()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.Tag override; if provided, replaces the tag from the reference.
Registry username for authenticated imports.
Registry password for authenticated imports.
Maximum seconds to wait for the import operation.
Resolved or imported image object.
raises
NotFoundError – If ref is a UUID and the image does not exist.
import_from()
str |
OCIReferenceOCI reference string or OCIReference pointing to the source image.Tag to assign to the imported image. Defaults to the tag in the reference.
Registry username for private registries.
Registry password for private registries.
Maximum seconds to wait for the import operation.
Imported image object.
raises
ValueError – If image is a UUID or credentials are incomplete.
raises
FailedOperationError – If the import operation completes without returning an image.
oci()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.Tag override; if provided, replaces the tag from the reference.
Registry username for authenticated imports.
Registry password for authenticated imports.
Maximum seconds to wait for the import operation.
Resolved or imported image object.
raises
NotFoundError – If ref is a UUID and the image does not exist.
podman()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.Tag override; if provided, replaces the tag from the reference.
Registry username for authenticated imports.
Registry password for authenticated imports.
Maximum seconds to wait for the import operation.
Resolved or imported image object.
raises
NotFoundError – If ref is a UUID and the image does not exist.
pull()
pull_by_oci()
tag parameter or from the reference itself,
then tries to find an existing image with that tag. If the image does not exist,
triggers an import and returns the result.str |
OCIReference | UUIDUUID, OCI reference string, or OCIReference of the image.Tag override; if provided, replaces the tag from the reference.
Registry username for authenticated imports.
Registry password for authenticated imports.
Maximum seconds to wait for the import operation.
Resolved or imported image object.
raises
NotFoundError – If ref is a UUID and the image does not exist.
use()
str | UUID |
OCIReferenceImage identifier — UUID, OCI reference string, or OCIReference object.If True, verify the image exists by fetching it from the API.
Image object corresponding to the given reference.