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