diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-06-12 15:53:41 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-06-12 15:53:41 -0400 |
commit | 0084b04acab1ec85fb0141c197882fd7cad2948b (patch) | |
tree | 3de397f406c1a22f497f824d10137a293cf09daa /libpod | |
parent | f8a84fdcff12fdc150bb303d0004d5ba0cd6087b (diff) | |
download | podman-0084b04acab1ec85fb0141c197882fd7cad2948b.tar.gz podman-0084b04acab1ec85fb0141c197882fd7cad2948b.tar.bz2 podman-0084b04acab1ec85fb0141c197882fd7cad2948b.zip |
Provide OCI spec path in `podman inspect` output
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container_inspect.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go index 8e34e7088..6f19aebb9 100644 --- a/libpod/container_inspect.go +++ b/libpod/container_inspect.go @@ -29,6 +29,7 @@ type InspectContainerData struct { HostnamePath string `json:"HostnamePath"` HostsPath string `json:"HostsPath"` StaticDir string `json:"StaticDir"` + OCIConfigPath string `json:"OCIConfigPath,omitempty"` LogPath string `json:"LogPath"` ConmonPidFile string `json:"ConmonPidFile"` Name string `json:"Name"` @@ -242,6 +243,10 @@ func (c *Container) getContainerInspectData(size bool, driverData *driver.Data) IsInfra: c.IsInfra(), } + if c.state.ConfigPath != "" { + data.OCIConfigPath = c.state.ConfigPath + } + if c.config.HealthCheckConfig != nil { // This container has a healthcheck defined in it; we need to add it's state healthCheckState, err := c.GetHealthCheckLog() |