pkg/domain/infra/runtime_libpod.go: Remove Cgroups v1

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
Lokesh Mandvekar
2025-11-03 14:30:55 -05:00
parent cb91d90835
commit 2e6a923f1e

View File

@@ -20,7 +20,6 @@ import (
"github.com/containers/podman/v6/pkg/util"
"github.com/sirupsen/logrus"
flag "github.com/spf13/pflag"
"go.podman.io/common/pkg/cgroups"
"go.podman.io/storage/pkg/idtools"
"go.podman.io/storage/types"
)
@@ -182,14 +181,6 @@ func getRuntime(ctx context.Context, fs *flag.FlagSet, opts *engineOpts) (*libpo
if fs.Changed("cgroup-manager") {
options = append(options, libpod.WithCgroupManager(cfg.ContainersConf.Engine.CgroupManager))
} else {
unified, err := cgroups.IsCgroup2UnifiedMode()
if err != nil {
return nil, err
}
if rootless.IsRootless() && !unified {
options = append(options, libpod.WithCgroupManager("cgroupfs"))
}
}
// TODO flag to set libpod static dir?