Merge pull request #14258 from mheon/no_hard_error_on_exec_cleanup

Make errors on removing exec sessions nonfatal
This commit is contained in:
OpenShift Merge Robot
2022-05-17 11:10:52 +02:00
committed by GitHub

View File

@ -732,7 +732,11 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, force, remo
// after setting the state to ContainerStateRemoving will prevent that the container is // after setting the state to ContainerStateRemoving will prevent that the container is
// restarted // restarted
if err := c.removeAllExecSessions(); err != nil { if err := c.removeAllExecSessions(); err != nil {
return err if cleanupErr == nil {
cleanupErr = err
} else {
logrus.Errorf("Remove exec sessions: %v", err)
}
} }
// Stop the container's storage // Stop the container's storage