From 7159aca226c172cf9360a93d37e10413d1dc4276 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 20 May 2026 14:58:35 +0800 Subject: [PATCH] fix: Fix the issue where deleting the host mapping in the runtime environment causes an error." (#12779) --- agent/app/service/runtime_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/app/service/runtime_utils.go b/agent/app/service/runtime_utils.go index 5dd7224cf..1bddc8385 100644 --- a/agent/app/service/runtime_utils.go +++ b/agent/app/service/runtime_utils.go @@ -669,7 +669,7 @@ func handleCompose(env gotenv.Env, composeContent []byte, create request.Runtime for _, host := range create.ExtraHosts { extraHosts = append(extraHosts, fmt.Sprintf("%s:%s", host.Hostname, host.IP)) } - delete(serviceValue, "extraHosts") + delete(serviceValue, "extra_hosts") if len(extraHosts) > 0 { serviceValue["extra_hosts"] = extraHosts }