summaryrefslogtreecommitdiff
path: root/cmd/podman/ps.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-05-07 11:09:33 -0500
committerbaude <bbaude@redhat.com>2019-05-07 12:38:58 -0500
commit2dfb744d8cae8e324676efcd845055f3cb0353bb (patch)
tree949610eee1f98f708fdf59dd8a33d9b3ad3e1e30 /cmd/podman/ps.go
parent3b5ac1818f09514039fdfec20aa874ae68e6ab7c (diff)
downloadpodman-2dfb744d8cae8e324676efcd845055f3cb0353bb.tar.gz
podman-2dfb744d8cae8e324676efcd845055f3cb0353bb.tar.bz2
podman-2dfb744d8cae8e324676efcd845055f3cb0353bb.zip
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 <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/ps.go')
-rw-r--r--cmd/podman/ps.go2
1 files changed, 1 insertions, 1 deletions
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)
}