From 2dfb744d8cae8e324676efcd845055f3cb0353bb Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 7 May 2019 11:09:33 -0500 Subject: fix podman-remote ps --ns the namespace for the remote client was being incorrectly derived from the "remote" client. fixes: #2938 Signed-off-by: baude --- cmd/podman/ps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/podman') diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go index 623f17050..eb5181126 100644 --- a/cmd/podman/ps.go +++ b/cmd/podman/ps.go @@ -497,7 +497,7 @@ func psDisplay(c *cliconfig.PsValues, runtime *adapter.LocalRuntime) error { } else { // Print namespace information - ns := shared.GetNamespaces(container.Pid) + ns := runtime.GetNamespaces(container) fmt.Fprintf(w, "\n%s\t%s\t%d\t%s\t%s\t%s\t%s\t%s\t%s\t%s", container.ID, container.Names, container.Pid, ns.Cgroup, ns.IPC, ns.MNT, ns.NET, ns.PIDNS, ns.User, ns.UTS) } -- cgit v1.2.3-54-g00ecf