From 816924ed1de806f2d42394e7c7886f3d827ffe2f Mon Sep 17 00:00:00 2001 From: Harsh Rawat Date: Sun, 24 May 2026 00:36:19 +0530 Subject: [PATCH] Update CgroupsPath to include container ID for sandbox container Signed-off-by: Harsh Rawat --- internal/guest/runtime/hcsv2/sandbox_container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/guest/runtime/hcsv2/sandbox_container.go b/internal/guest/runtime/hcsv2/sandbox_container.go index b9416fbb8a..5f3d80356b 100644 --- a/internal/guest/runtime/hcsv2/sandbox_container.go +++ b/internal/guest/runtime/hcsv2/sandbox_container.go @@ -126,7 +126,7 @@ func setupSandboxContainerSpec(ctx context.Context, id, sandboxRoot string, spec if virtualSandboxID != "" { sandboxID = virtualSandboxID } - spec.Linux.CgroupsPath = fmt.Sprintf(podCgroupPathFmt, sandboxID) + spec.Linux.CgroupsPath = fmt.Sprintf(containerCgroupPathFmt, sandboxID, id) // Clear the windows section as we dont want to forward to runc spec.Windows = nil