mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
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:
parent
ae6b2bef59
commit
d5a58163f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue