Closed jhc4318 closed 6 months ago
image.exists just calls image.inspect under the covers and parses the error output for no such image to determine if the image exists or not. https://github.com/gabrieldemarmiesse/python-on-whales/blob/4433a0227b90974f9e0c7090383deacedf8d01c6/python_on_whales/utils.py#L156
image.exists
image.inspect
no such image
This works with docker
docker
>docker image inspect hello [] Error response from daemon: No such image: hello:latest
But not for podman
podman
>podman image inspect hello [] Error: inspecting object: hello: image not known
I think this should check for image not known as well.
image not known
image.exists
just callsimage.inspect
under the covers and parses the error output forno such image
to determine if the image exists or not. https://github.com/gabrieldemarmiesse/python-on-whales/blob/4433a0227b90974f9e0c7090383deacedf8d01c6/python_on_whales/utils.py#L156This works with
docker
But not for
podman
I think this should check for
image not known
as well.