mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Wipe PID and ConmonPID in state after container stops
Matches the behavior of Docker. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -1044,6 +1044,8 @@ func (c *Container) stop(timeout uint) error {
|
||||
return err
|
||||
}
|
||||
|
||||
c.state.PID = 0
|
||||
c.state.ConmonPID = 0
|
||||
c.state.StoppedByUser = true
|
||||
if err := c.save(); err != nil {
|
||||
return errors.Wrapf(err, "error saving container %s state after stopping", c.ID())
|
||||
|
Reference in New Issue
Block a user