mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +08:00
Merge pull request #14258 from mheon/no_hard_error_on_exec_cleanup
Make errors on removing exec sessions nonfatal
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user