mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 08:46:24 +02:00
fix: add --type=container to docker inspect to prevent Podman conflicts (#418)
* 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. * Format Python code using pre-commit hook --------- Co-authored-by: Sid Golestaneh <sid@golestaneh.com>
This commit is contained in:
parent
ae6b2bef59
commit
a402fee13b
1 changed files with 4 additions and 1 deletions
|
|
@ -11,7 +11,10 @@ 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