This is with podman-py==4.9.0 running against podman 4.9.2. podman versions prior to 4.8.0 contain another error preventing running a locally non-existing image (See: https://github.com/containers/podman-py/issues/231).
This can be reproduced with the following snippet (execute podman image rm docker.io/library/busybox:latest if you have already pulled busybox prior to testing):
The code for running a new container with an image that is not present locally tries to access the
ImagesManager
viaself.client.images
as seen here: https://github.com/containers/podman-py/blob/53b238b75f7419f55560d6b5ef7d24729cd186bd/podman/domain/containers_run.py#L63 Asself.client
is anAPIClient
instance and not an instance ofPodmanClient
, anAttributeError
occurs:This is with
podman-py==4.9.0
running against podman 4.9.2. podman versions prior to 4.8.0 contain another error preventing running a locally non-existing image (See: https://github.com/containers/podman-py/issues/231).This can be reproduced with the following snippet (execute
podman image rm docker.io/library/busybox:latest
if you have already pulledbusybox
prior to testing):