From c0b3026209c19652e1357ae2b106b0afd7dcc969 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 14 Sep 2026 16:01:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(extension):=20docker=20=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E5=8F=8C=E5=90=8E=E7=BC=80=E6=8B=BC=E6=8E=A5?= =?UTF-8?q?=E2=80=94=E2=80=94=E5=B7=B2=E5=90=AB=20tag=20=E7=9A=84=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E9=95=9C=E5=83=8F=E5=86=8D=E8=A1=A5=20suffix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build_command 无脑拼 {image}:{suffix};自动生成镜像名已含 tag (bioflow-ext-:)→ 拼成 a:b:b 非法引用,175 真实执行 exit 125 invalid reference format。修复:含冒号视为已带 tag, 不补后缀;用例 04 真实容器执行(自动镜像+解析脚本+过滤断言)通过。 Co-Authored-By: Claude Fable 5 --- bioflow_service/app/services/bioflow/extension_exec.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bioflow_service/app/services/bioflow/extension_exec.py b/bioflow_service/app/services/bioflow/extension_exec.py index bf3f6c9..460250c 100644 --- a/bioflow_service/app/services/bioflow/extension_exec.py +++ b/bioflow_service/app/services/bioflow/extension_exec.py @@ -111,7 +111,10 @@ class ExtensionExecutor: cmd += ["-v", f"{self.cfg.entry_script_dir}:{self.cfg.container_entry_dir}:ro"] cmd += ["--cpus", self._safe_cpu(request.cpu or self.cfg.default_cpus)] cmd += ["--memory", self._safe_memory(request.memory or self.cfg.default_memory)] - cmd.append(f"{request.image}:{self.cfg.docker_tag_suffix}") + # 镜像名可能已含 tag(自动生成的 bioflow-ext-:); + # 未含 tag 时才补 suffix——否则拼成 a:b:b 的非法引用(真实 bug)。 + image_ref = str(request.image) + cmd.append(image_ref if ":" in image_ref else f"{image_ref}:{self.cfg.docker_tag_suffix}") cmd += ["python", "-B", CONTAINER_ENTRY] cmd += ["--ext-dir", self.cfg.container_ext_dir] cmd += ["--input-dir", self.cfg.container_input_dir]