File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package containers
22
33import (
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
9087func 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 {
You can’t perform that action at this time.
0 commit comments