From b3a827f2d81d340336febe9bb316b921dc546a2a Mon Sep 17 00:00:00 2001 From: Kyujin Cho Date: Wed, 8 Jan 2025 13:11:53 +0900 Subject: [PATCH] fix(BA-438): Libc version not parsed on image without metadata label (#3341) Backported-from: main (24.12) Backported-to: 24.09 Backport-of: 3341 --- changes/3341.fix.md | 1 + src/ai/backend/agent/docker/agent.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changes/3341.fix.md diff --git a/changes/3341.fix.md b/changes/3341.fix.md new file mode 100644 index 0000000000..94db996769 --- /dev/null +++ b/changes/3341.fix.md @@ -0,0 +1 @@ +Fix image without metadata label not working diff --git a/src/ai/backend/agent/docker/agent.py b/src/ai/backend/agent/docker/agent.py index 2b43e9144b..8cf8d48b12 100644 --- a/src/ai/backend/agent/docker/agent.py +++ b/src/ai/backend/agent/docker/agent.py @@ -1311,8 +1311,8 @@ async def resolve_image_distro(self, image: ImageConfig) -> str: "HostConfig": { "Init": True, }, - "Entrypoint": "sh", - "Cmd": ["-c", "ldd", "--version"], + "Entrypoint": [""], + "Cmd": ["ldd", "--version"], } container = await docker.containers.create(container_config)