Skip to content

Commit c48bec0

Browse files
committed
containers/unpause: remove cgroupsv1 support
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 58b4e65 commit c48bec0

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

cmd/podman/containers/unpause.go

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package containers
22

33
import (
44
"context"
5-
"errors"
65
"fmt"
76
"os"
87
"strings"
@@ -12,9 +11,7 @@ import (
1211
"github.com/containers/podman/v5/cmd/podman/utils"
1312
"github.com/containers/podman/v5/cmd/podman/validate"
1413
"github.com/containers/podman/v5/pkg/domain/entities"
15-
"github.com/containers/podman/v5/pkg/rootless"
1614
"github.com/spf13/cobra"
17-
"go.podman.io/common/pkg/cgroups"
1815
"go.podman.io/common/pkg/completion"
1916
)
2017

@@ -88,18 +85,9 @@ func init() {
8885
}
8986

9087
func unpause(_ *cobra.Command, args []string) error {
91-
var (
92-
errs utils.OutputErrors
93-
)
88+
var errs utils.OutputErrors
9489
args = utils.RemoveSlash(args)
9590

96-
if rootless.IsRootless() && !registry.IsRemote() {
97-
cgroupv2, _ := cgroups.IsCgroup2UnifiedMode()
98-
if !cgroupv2 {
99-
return errors.New("unpause is not supported for cgroupv1 rootless containers")
100-
}
101-
}
102-
10391
for _, cidFile := range unpauseCidFiles {
10492
content, err := os.ReadFile(cidFile)
10593
if err != nil {

0 commit comments

Comments
 (0)