Image
Image.get()
Example
Example
Image.list()
Example
Example
Image.inspect()
Example
Example
Image.remove()
Example
Example
force is not set, an image still referenced by one or more sandboxes causes the call to fail.
Image.prune()
Example
Example
Image.load()
docker save tarballs and OCI Image Layout archives, so locally built images can be used without going through a registry. tag applies an extra reference to the first image in the archive. Returns a handle for every image reference imported.
Example
Example
Image.save()
format selects the archive layout: "docker" (default, loadable with docker load) or "oci" (OCI Image Layout). Throws ImageNotFoundError when any reference is not in the local cache.
Example
Example
Types
ImageHandle
Returned by get() · list() · load()
A lightweight metadata handle for a cached OCI image. Properties are read-only.ImageDetail
Returned by inspect()
Full detail for a cached image.ImageConfigDetail
Used by ImageDetail.config
OCI image config fields extracted from the local cache.ImageLayerDetail
Used by ImageDetail.layers
Metadata for one image layer.ImagePruneReport
Returned by prune()
Summary of cached image data removed byImage.prune().