summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorchenkang <kongchen28@gmail.com>2021-04-17 20:55:57 +0800
committerchenkang <kongchen28@gmail.com>2021-04-17 20:56:08 +0800
commitb963a5eb4a62688d3fc5c11815bc626055201187 (patch)
treeadb3088d94af5208a7c3e254b7e97058ea30bd6a /libpod
parentf3f7ae5cddada6a1faa4bef21c586efb83c70c19 (diff)
downloadpodman-b963a5eb4a62688d3fc5c11815bc626055201187.tar.gz
podman-b963a5eb4a62688d3fc5c11815bc626055201187.tar.bz2
podman-b963a5eb4a62688d3fc5c11815bc626055201187.zip
add pidfile in inspection
Signed-off-by: chenkang <kongchen28@gmail.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_inspect.go1
-rw-r--r--libpod/define/container_inspect.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go
index e0569e2d4..57968039f 100644
--- a/libpod/container_inspect.go
+++ b/libpod/container_inspect.go
@@ -141,6 +141,7 @@ func (c *Container) getContainerInspectData(size bool, driverData *define.Driver
Mounts: inspectMounts,
Dependencies: c.Dependencies(),
IsInfra: c.IsInfra(),
+ PidFile: config.PidFile,
}
if c.state.ConfigPath != "" {
diff --git a/libpod/define/container_inspect.go b/libpod/define/container_inspect.go
index 0f355d20a..126ce85a6 100644
--- a/libpod/define/container_inspect.go
+++ b/libpod/define/container_inspect.go
@@ -647,6 +647,7 @@ type InspectContainerData struct {
IsInfra bool `json:"IsInfra"`
Config *InspectContainerConfig `json:"Config"`
HostConfig *InspectContainerHostConfig `json:"HostConfig"`
+ PidFile string `json:"PidFile"`
}
// InspectExecSession contains information about a given exec session.