Skip to content

Commit 30d07aa

Browse files
committed
pkg/domain/infra/abi/containers.go: Remove Cgroups v1
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent a994aef commit 30d07aa

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/domain/infra/abi/containers.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import (
3434
"github.com/containers/podman/v6/pkg/util"
3535
"github.com/hashicorp/go-multierror"
3636
"github.com/sirupsen/logrus"
37-
"go.podman.io/common/pkg/cgroups"
3837
"go.podman.io/common/pkg/config"
3938
"go.podman.io/image/v5/manifest"
4039
"go.podman.io/storage"
@@ -1620,15 +1619,6 @@ func (ic *ContainerEngine) ContainerStats(ctx context.Context, namesOrIds []stri
16201619
if options.Interval < 1 {
16211620
return nil, errors.New("invalid interval, must be a positive number greater zero")
16221621
}
1623-
if rootless.IsRootless() {
1624-
unified, err := cgroups.IsCgroup2UnifiedMode()
1625-
if err != nil {
1626-
return nil, err
1627-
}
1628-
if !unified {
1629-
return nil, errors.New("stats is not supported in rootless mode without cgroups v2")
1630-
}
1631-
}
16321622
statsChan = make(chan entities.ContainerStatsReport, 1)
16331623

16341624
var containerFunc func() ([]*libpod.Container, error)

0 commit comments

Comments
 (0)