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 <bbaude@redhat.com>

Closes: #488
Approved by: rhatdan
This commit is contained in:
baude 2018-03-14 12:09:54 -05:00 committed by Atomic Bot
parent 97c2c33978
commit bc358eb396
2 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,7 @@ func getCtrInspectInfo(ctr *libpod.Container, ctrInspectData *inspect.ContainerI
Memory: createArtifact.Resources.Memory, Memory: createArtifact.Resources.Memory,
Ulimits: createArtifact.Resources.Ulimit, Ulimits: createArtifact.Resources.Ulimit,
SecurityOpt: createArtifact.SecurityOpts, SecurityOpt: createArtifact.SecurityOpts,
Tmpfs: createArtifact.Tmpfs,
}, },
&inspect.CtrConfig{ &inspect.CtrConfig{
Hostname: spec.Hostname, Hostname: spec.Hostname,

View File

@ -74,6 +74,7 @@ type HostConfig struct {
CPUPercent int `json:"CPUPercent"` //check type, TODO CPUPercent int `json:"CPUPercent"` //check type, TODO
IOMaximumIOps int `json:"IOMaximumIOps"` //check type, TODO IOMaximumIOps int `json:"IOMaximumIOps"` //check type, TODO
IOMaximumBandwidth int `json:"IOMaximumBandwidth"` //check type, TODO IOMaximumBandwidth int `json:"IOMaximumBandwidth"` //check type, TODO
Tmpfs []string `json:"Tmpfs"`
} }
// CtrConfig holds information about the container configuration // CtrConfig holds information about the container configuration