Implement kpod inspect
kpod inspect allows the user to view low-level information about containers and images Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
parent
3b295967f1
commit
0d4305a261
17 changed files with 1180 additions and 318 deletions
|
@ -177,3 +177,10 @@ func (c *Container) NetNsPath() (string, error) {
|
|||
func (c *Container) Metadata() *pb.ContainerMetadata {
|
||||
return c.metadata
|
||||
}
|
||||
|
||||
// State returns the state of the running container
|
||||
func (c *Container) State() *ContainerState {
|
||||
c.opLock.Lock()
|
||||
defer c.opLock.Unlock()
|
||||
return c.state
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue