diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/ps.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go index 14da06ae8..26991af4b 100644 --- a/cmd/podman/ps.go +++ b/cmd/podman/ps.go @@ -435,6 +435,11 @@ func getTemplateOutput(containers []*libpod.Container, opts psOptions) ([]psTemp } command := strings.Join(batchInfo.conConfig.Spec.Process.Args, " ") + if !opts.noTrunc { + if len(command) > 20 { + command = command[:19] + "..." + } + } ports := portsToString(batchInfo.conConfig.PortMappings) mounts := getMounts(createArtifact.Volumes, opts.noTrunc) labels := formatLabels(ctr.Labels()) @@ -471,6 +476,7 @@ func getTemplateOutput(containers []*libpod.Container, opts psOptions) ([]psTemp Mounts: mounts, PID: batchInfo.pid, } + if opts.namespace { params.Cgroup = ns.Cgroup params.IPC = ns.IPC |