Skip to content

Commit

Permalink
Add volume mounts to PS output
Browse files Browse the repository at this point in the history
When listing containers, you should be able to list the mounts
with something like --format "table{{".Mounts}}".

Resolves: containers#2238

Signed-off-by: baude <[email protected]>
  • Loading branch information
baude committed Feb 8, 2019
1 parent afd4d5f commit 4b40640
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/podman/shared/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ type PsContainerOutput struct {
PIDNS string
User string
UTS string
Mounts string
}

// Namespace describes output for ps namespace
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4b40640

Please sign in to comment.