Make CGroups cleanup optional on whether they exist

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #981
Approved by: baude
This commit is contained in:
Matthew Heon
2018-06-21 11:09:17 -04:00
committed by Atomic Bot
parent d2f981fd0b
commit c3602075ec
5 changed files with 36 additions and 7 deletions

View File

@ -805,6 +805,8 @@ func (c *Container) Refresh(ctx context.Context) error {
return err
}
logrus.Debugf("Resetting state of container %s", c.ID())
// We've finished unwinding the container back to its initial state
// Now safe to refresh container state
if err := resetState(c.state); err != nil {