From d22a42113dc01c0e0ee19a8073f784ca83f1a8af Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 17 Jun 2025 15:35:29 -0700 Subject: [PATCH] libct/configs: stop using deprecated id Signed-off-by: Kir Kolyshkin --- libcontainer/configs/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcontainer/configs/config.go b/libcontainer/configs/config.go index b7d545bea..3c0dfc0a7 100644 --- a/libcontainer/configs/config.go +++ b/libcontainer/configs/config.go @@ -16,6 +16,7 @@ import ( "github.com/sirupsen/logrus" "golang.org/x/sys/unix" + "github.com/opencontainers/cgroups" devices "github.com/opencontainers/cgroups/devices/config" "github.com/opencontainers/runtime-spec/specs-go" ) @@ -145,7 +146,7 @@ type Config struct { // Cgroups specifies specific cgroup settings for the various subsystems that the container is // placed into to limit the resources the container has available. - Cgroups *Cgroup `json:"cgroups"` + Cgroups *cgroups.Cgroup `json:"cgroups"` // AppArmorProfile specifies the profile to apply to the process running in the container and is // change at the time the process is executed.