diff options
author | baude <bbaude@redhat.com> | 2018-03-14 12:09:54 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-03-14 17:14:07 +0000 |
commit | bc358eb396aa87f3122f0449945efc03ed64bfd2 (patch) | |
tree | 5509830d87320a84aca5562667b9ea144abe883b | |
parent | 97c2c339784c7570ff8abcd43edc6bd55ad6de42 (diff) | |
download | podman-bc358eb396aa87f3122f0449945efc03ed64bfd2.tar.gz podman-bc358eb396aa87f3122f0449945efc03ed64bfd2.tar.bz2 podman-bc358eb396aa87f3122f0449945efc03ed64bfd2.zip |
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
-rw-r--r-- | cmd/podman/inspect.go | 1 | ||||
-rw-r--r-- | pkg/inspect/inspect.go | 1 |
2 files changed, 2 insertions, 0 deletions
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 |