diff options
Diffstat (limited to 'cmd/podman/unpause.go')
-rw-r--r-- | cmd/podman/unpause.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/unpause.go b/cmd/podman/unpause.go index d0c622b8a..d5b2732af 100644 --- a/cmd/podman/unpause.go +++ b/cmd/podman/unpause.go @@ -25,6 +25,10 @@ var ( ) func unpauseCmd(c *cli.Context) error { + if os.Getuid() != 0 { + return errors.New("unpause is not supported for rootless containers") + } + runtime, err := libpodruntime.GetRuntime(c) if err != nil { return errors.Wrapf(err, "could not get runtime") |