summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-04-02 11:59:05 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-04-03 10:57:03 -0400
commitc1cd9a3c6d005ee80d6c0563e2d3a806e7b4f63c (patch)
tree793e98c7e45acaef2023aad6ff4289ec895a5c19 /cmd/podman
parent2ad5f5cc25844d0723116149b42e04ab310269f4 (diff)
downloadpodman-c1cd9a3c6d005ee80d6c0563e2d3a806e7b4f63c.tar.gz
podman-c1cd9a3c6d005ee80d6c0563e2d3a806e7b4f63c.tar.bz2
podman-c1cd9a3c6d005ee80d6c0563e2d3a806e7b4f63c.zip
--size does not work with rootless at present
We'd need to join multiple container's user namespaces, which is not possible for now. The rootless single userns patches under development by Giuseppe will fix this, but won't land in 1.2.x. For now, disable --size as rootless. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/ps.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go
index 1f8db2739..71c8dee97 100644
--- a/cmd/podman/ps.go
+++ b/cmd/podman/ps.go
@@ -209,6 +209,10 @@ func psCmd(c *cliconfig.PsValues) error {
span, _ := opentracing.StartSpanFromContext(Ctx, "psCmd")
defer span.Finish()
}
+ // TODO disable when single rootless userns merges
+ if c.Bool("size") && os.Geteuid() != 0 {
+ return errors.New("the --size option is not presently supported without root")
+ }
var watch bool