From c1cd9a3c6d005ee80d6c0563e2d3a806e7b4f63c Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Tue, 2 Apr 2019 11:59:05 -0400 Subject: --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 --- cmd/podman/ps.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/podman') 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 -- cgit v1.2.3-54-g00ecf