From bc358eb396aa87f3122f0449945efc03ed64bfd2 Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 14 Mar 2018 12:09:54 -0500 Subject: Include tmpfs in inspect Other container runtimes include the tmpfs mount points in their inspect output. Podman should as well. It is under hostconfig. Resolves: #483 Signed-off-by: baude Closes: #488 Approved by: rhatdan --- cmd/podman/inspect.go | 1 + pkg/inspect/inspect.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/podman/inspect.go b/cmd/podman/inspect.go index adb714901..8bf6f96be 100644 --- a/cmd/podman/inspect.go +++ b/cmd/podman/inspect.go @@ -241,6 +241,7 @@ func getCtrInspectInfo(ctr *libpod.Container, ctrInspectData *inspect.ContainerI Memory: createArtifact.Resources.Memory, Ulimits: createArtifact.Resources.Ulimit, SecurityOpt: createArtifact.SecurityOpts, + Tmpfs: createArtifact.Tmpfs, }, &inspect.CtrConfig{ Hostname: spec.Hostname, diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go index 806692425..b75fba0e1 100644 --- a/pkg/inspect/inspect.go +++ b/pkg/inspect/inspect.go @@ -74,6 +74,7 @@ type HostConfig struct { CPUPercent int `json:"CPUPercent"` //check type, TODO IOMaximumIOps int `json:"IOMaximumIOps"` //check type, TODO IOMaximumBandwidth int `json:"IOMaximumBandwidth"` //check type, TODO + Tmpfs []string `json:"Tmpfs"` } // CtrConfig holds information about the container configuration -- cgit v1.2.3-54-g00ecf