mirror of
https://github.com/containers/podman.git
synced 2025-06-25 12:20:42 +08:00
Merge pull request #2296 from baude/psShowMount
Add volume mounts to PS output
This commit is contained in:
@ -88,6 +88,7 @@ type PsContainerOutput struct {
|
|||||||
PIDNS string
|
PIDNS string
|
||||||
User string
|
User string
|
||||||
UTS string
|
UTS string
|
||||||
|
Mounts string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Namespace describes output for ps namespace
|
// Namespace describes output for ps namespace
|
||||||
@ -228,6 +229,7 @@ func NewBatchContainer(ctr *libpod.Container, opts PsOptions) (PsContainerOutput
|
|||||||
pso.CreatedAt = ctr.CreatedTime()
|
pso.CreatedAt = ctr.CreatedTime()
|
||||||
pso.StartedAt = startedAt
|
pso.StartedAt = startedAt
|
||||||
pso.Labels = ctr.Labels()
|
pso.Labels = ctr.Labels()
|
||||||
|
pso.Mounts = strings.Join(ctr.UserVolumes(), " ")
|
||||||
|
|
||||||
if opts.Namespace {
|
if opts.Namespace {
|
||||||
pso.Cgroup = ns.Cgroup
|
pso.Cgroup = ns.Cgroup
|
||||||
|
Reference in New Issue
Block a user