summaryrefslogtreecommitdiff
path: root/cmd/podman/pause.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/pause.go')
-rw-r--r--cmd/podman/pause.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/pause.go b/cmd/podman/pause.go
index 12ff747a7..e8a576599 100644
--- a/cmd/podman/pause.go
+++ b/cmd/podman/pause.go
@@ -25,6 +25,10 @@ var (
)
func pauseCmd(c *cli.Context) error {
+ if os.Getuid() != 0 {
+ return errors.New("pause is not supported for rootless containers")
+ }
+
runtime, err := libpodruntime.GetRuntime(c)
if err != nil {
return errors.Wrapf(err, "could not get runtime")