mirror of
https://github.com/containers/podman.git
synced 2025-10-15 10:16:28 +08:00
Add ability to update container status from runc
Wire this in to all state-bound container operations to ensure syncronization of container state. Also exposes PID of running containers via API. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #56 Approved by: rhatdan
This commit is contained in:
@ -91,12 +91,8 @@ func (r *Runtime) RemoveContainer(c *Container, force bool) error {
|
||||
return ErrRuntimeStopped
|
||||
}
|
||||
|
||||
if !c.valid {
|
||||
return ErrCtrRemoved
|
||||
}
|
||||
|
||||
// Update the container to get current state
|
||||
if err := r.state.UpdateContainer(c); err != nil {
|
||||
if err := c.syncContainer(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@ -225,9 +221,3 @@ func (r *Runtime) removeMultipleContainers(containers []storage.Container) error
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContainerConfigToDisk saves a container's nonvolatile configuration to disk
|
||||
// remove nolint when implemented
|
||||
func (r *Runtime) containerConfigToDisk(ctr *Container) error { //nolint
|
||||
return ErrNotImplemented
|
||||
}
|
||||
|
Reference in New Issue
Block a user