mirror of
https://github.com/containers/podman.git
synced 2025-07-22 22:09:55 +08:00
Provide OCI spec path in podman inspect
output
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -29,6 +29,7 @@ type InspectContainerData struct {
|
|||||||
HostnamePath string `json:"HostnamePath"`
|
HostnamePath string `json:"HostnamePath"`
|
||||||
HostsPath string `json:"HostsPath"`
|
HostsPath string `json:"HostsPath"`
|
||||||
StaticDir string `json:"StaticDir"`
|
StaticDir string `json:"StaticDir"`
|
||||||
|
OCIConfigPath string `json:"OCIConfigPath,omitempty"`
|
||||||
LogPath string `json:"LogPath"`
|
LogPath string `json:"LogPath"`
|
||||||
ConmonPidFile string `json:"ConmonPidFile"`
|
ConmonPidFile string `json:"ConmonPidFile"`
|
||||||
Name string `json:"Name"`
|
Name string `json:"Name"`
|
||||||
@ -242,6 +243,10 @@ func (c *Container) getContainerInspectData(size bool, driverData *driver.Data)
|
|||||||
IsInfra: c.IsInfra(),
|
IsInfra: c.IsInfra(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.state.ConfigPath != "" {
|
||||||
|
data.OCIConfigPath = c.state.ConfigPath
|
||||||
|
}
|
||||||
|
|
||||||
if c.config.HealthCheckConfig != nil {
|
if c.config.HealthCheckConfig != nil {
|
||||||
// This container has a healthcheck defined in it; we need to add it's state
|
// This container has a healthcheck defined in it; we need to add it's state
|
||||||
healthCheckState, err := c.GetHealthCheckLog()
|
healthCheckState, err := c.GetHealthCheckLog()
|
||||||
|
Reference in New Issue
Block a user