How to use the podman.libs.images.Image function in podman

To help you get started, we’ve selected a few podman examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github containers / python-podman / podman / libs / images.py View on Github external
def get(self, id_):
        """Get Image from id."""
        with self._client() as podman:
            result = podman.GetImage(id_)
        return Image(self._client, result["image"]["id"], result["image"])
github containers / python-podman / podman / libs / images.py View on Github external
def list(self):
        """List all images in the libpod image store."""
        with self._client() as podman:
            results = podman.ListImages()
        for img in results["images"]:
            yield Image(self._client, img["id"], img)