mirror of
https://github.com/containers/podman.git
synced 2025-06-05 14:06:01 +08:00
Add container dependencies to Inspect output
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #577 Approved by: rhatdan
This commit is contained in:
@ -77,6 +77,7 @@ func (c *Container) getContainerInspectData(size bool, driverData *inspect.Data)
|
|||||||
ExecIDs: execIDs,
|
ExecIDs: execIDs,
|
||||||
GraphDriver: driverData,
|
GraphDriver: driverData,
|
||||||
Mounts: spec.Mounts,
|
Mounts: spec.Mounts,
|
||||||
|
Dependencies: c.Dependencies(),
|
||||||
NetworkSettings: &inspect.NetworkSettings{
|
NetworkSettings: &inspect.NetworkSettings{
|
||||||
Bridge: "", // TODO
|
Bridge: "", // TODO
|
||||||
SandboxID: "", // TODO - is this even relevant?
|
SandboxID: "", // TODO - is this even relevant?
|
||||||
|
@ -149,8 +149,8 @@ type ContainerInspectData struct {
|
|||||||
ImageID string `json:"Image"`
|
ImageID string `json:"Image"`
|
||||||
ImageName string `json:"ImageName"`
|
ImageName string `json:"ImageName"`
|
||||||
ResolvConfPath string `json:"ResolvConfPath"`
|
ResolvConfPath string `json:"ResolvConfPath"`
|
||||||
HostnamePath string `json:"HostnamePath"` //TODO
|
HostnamePath string `json:"HostnamePath"`
|
||||||
HostsPath string `json:"HostsPath"` //TODO
|
HostsPath string `json:"HostsPath"`
|
||||||
StaticDir string `json:"StaticDir"`
|
StaticDir string `json:"StaticDir"`
|
||||||
LogPath string `json:"LogPath"`
|
LogPath string `json:"LogPath"`
|
||||||
Name string `json:"Name"`
|
Name string `json:"Name"`
|
||||||
@ -159,11 +159,12 @@ type ContainerInspectData struct {
|
|||||||
MountLabel string `json:"MountLabel"`
|
MountLabel string `json:"MountLabel"`
|
||||||
ProcessLabel string `json:"ProcessLabel"`
|
ProcessLabel string `json:"ProcessLabel"`
|
||||||
AppArmorProfile string `json:"AppArmorProfile"`
|
AppArmorProfile string `json:"AppArmorProfile"`
|
||||||
ExecIDs []string `json:"ExecIDs"` //TODO
|
ExecIDs []string `json:"ExecIDs"`
|
||||||
GraphDriver *Data `json:"GraphDriver"`
|
GraphDriver *Data `json:"GraphDriver"`
|
||||||
SizeRw int64 `json:"SizeRw,omitempty"`
|
SizeRw int64 `json:"SizeRw,omitempty"`
|
||||||
SizeRootFs int64 `json:"SizeRootFs,omitempty"`
|
SizeRootFs int64 `json:"SizeRootFs,omitempty"`
|
||||||
Mounts []specs.Mount `json:"Mounts"`
|
Mounts []specs.Mount `json:"Mounts"`
|
||||||
|
Dependencies []string `json:"Dependencies"`
|
||||||
NetworkSettings *NetworkSettings `json:"NetworkSettings"` //TODO
|
NetworkSettings *NetworkSettings `json:"NetworkSettings"` //TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user