diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-08 12:10:40 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-03-11 11:48:27 +0100 |
commit | d6ebccf7c2cc2d337de497bb8388895aa8320b1d (patch) | |
tree | ed5c98a36359580bfe24477e28c1163ebf1c94d4 /cmd/podman/pod_stats.go | |
parent | 4a0fb35335bd9b0f78bb63d13da6a46d6b8843d8 (diff) | |
download | podman-d6ebccf7c2cc2d337de497bb8388895aa8320b1d.tar.gz podman-d6ebccf7c2cc2d337de497bb8388895aa8320b1d.tar.bz2 podman-d6ebccf7c2cc2d337de497bb8388895aa8320b1d.zip |
rootless: disable pod stats
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman/pod_stats.go')
-rw-r--r-- | cmd/podman/pod_stats.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/pod_stats.go b/cmd/podman/pod_stats.go index 7dbd84525..5c30e0595 100644 --- a/cmd/podman/pod_stats.go +++ b/cmd/podman/pod_stats.go @@ -53,6 +53,11 @@ func init() { } func podStatsCmd(c *cliconfig.PodStatsValues) error { + + if os.Geteuid() != 0 { + return errors.New("stats is not supported in rootless mode") + } + format := c.Format all := c.All latest := c.Latest |