fix: add --type=container to docker inspect to prevent Podman conflicts

Adding `--type=container` ensures `docker inspect` targets containers
specifically, preventing conflicts with images in Podman.
This commit is contained in:
Sid Golestane 2025-02-25 09:42:57 -08:00
parent ae6b2bef59
commit d5a58163f4

View file

@ -11,7 +11,7 @@ log = getLogger(__name__)
def docker_container_status(container: str) -> str:
result = subprocess.run(
["docker", "inspect", container], capture_output=True, text=True, check=False
["docker", "inspect", "--type=container", container], capture_output=True, text=True, check=False
)
if result.returncode != 0:
return "not found"