From 4b40640c81bb488c5bf48478159b34475545528f Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 8 Feb 2019 16:43:32 -0600 Subject: Add volume mounts to PS output When listing containers, you should be able to list the mounts with something like --format "table{{".Mounts}}". Resolves: #2238 Signed-off-by: baude --- cmd/podman/shared/container.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd') diff --git a/cmd/podman/shared/container.go b/cmd/podman/shared/container.go index f84fb8261..c74d8fdce 100644 --- a/cmd/podman/shared/container.go +++ b/cmd/podman/shared/container.go @@ -88,6 +88,7 @@ type PsContainerOutput struct { PIDNS string User string UTS string + Mounts string } // Namespace describes output for ps namespace @@ -228,6 +229,7 @@ func NewBatchContainer(ctr *libpod.Container, opts PsOptions) (PsContainerOutput pso.CreatedAt = ctr.CreatedTime() pso.StartedAt = startedAt pso.Labels = ctr.Labels() + pso.Mounts = strings.Join(ctr.UserVolumes(), " ") if opts.Namespace { pso.Cgroup = ns.Cgroup -- cgit v1.2.3-54-g00ecf