File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ import (
1010 "github.com/containers/podman/v6/libpod/define"
1111 "github.com/containers/podman/v6/libpod/events"
1212 "github.com/containers/podman/v6/pkg/parallel"
13- "github.com/containers/podman/v6/pkg/rootless"
1413 "github.com/opencontainers/runtime-spec/specs-go"
1514 "github.com/sirupsen/logrus"
16- "go.podman.io/common/pkg/cgroups"
1715)
1816
1917// startInitContainers starts a pod's init containers.
@@ -341,16 +339,6 @@ func (p *Pod) Pause(ctx context.Context) (map[string]error, error) {
341339 return nil , define .ErrPodRemoved
342340 }
343341
344- if rootless .IsRootless () {
345- cgroupv2 , err := cgroups .IsCgroup2UnifiedMode ()
346- if err != nil {
347- return nil , fmt .Errorf ("failed to determine cgroupversion: %w" , err )
348- }
349- if ! cgroupv2 {
350- return nil , fmt .Errorf ("can not pause pods containing rootless containers with cgroup V1: %w" , define .ErrNoCgroups )
351- }
352- }
353-
354342 allCtrs , err := p .runtime .state .PodContainers (p )
355343 if err != nil {
356344 return nil , err
You can’t perform that action at this time.
0 commit comments