aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_inspect.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-07-02 18:52:55 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-07-02 18:52:55 -0400
commita1bb1987cc78dead96ef84086020f74b7c44c700 (patch)
tree928f8f2776e6027d04c2be1ef5dc52dbcd409e69 /libpod/container_inspect.go
parent55e028a12ee003e057c65e376fe4b723d28ae52e (diff)
downloadpodman-a1bb1987cc78dead96ef84086020f74b7c44c700.tar.gz
podman-a1bb1987cc78dead96ef84086020f74b7c44c700.tar.bz2
podman-a1bb1987cc78dead96ef84086020f74b7c44c700.zip
Store Conmon's PID in our state and display in inspect
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/container_inspect.go')
-rw-r--r--libpod/container_inspect.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go
index 6085f1210..938a5b210 100644
--- a/libpod/container_inspect.go
+++ b/libpod/container_inspect.go
@@ -145,6 +145,7 @@ type InspectContainerState struct {
OOMKilled bool `json:"OOMKilled"`
Dead bool `json:"Dead"`
Pid int `json:"Pid"`
+ ConmonPid int `json:"ConmonPid,omitempty"`
ExitCode int32 `json:"ExitCode"`
Error string `json:"Error"` // TODO
StartedAt time.Time `json:"StartedAt"`
@@ -261,6 +262,7 @@ func (c *Container) getContainerInspectData(size bool, driverData *driver.Data)
OOMKilled: runtimeInfo.OOMKilled,
Dead: runtimeInfo.State.String() == "bad state",
Pid: runtimeInfo.PID,
+ ConmonPid: runtimeInfo.ConmonPID,
ExitCode: runtimeInfo.ExitCode,
Error: "", // can't get yet
StartedAt: runtimeInfo.StartedTime,