mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Lock container when set state to restarting
After exec driver run, container lock is lost, so we should lock container when changing its state to `restarting` Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
parent
5cdc0dfce3
commit
155714c596
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ func (m *containerMonitor) start() error {
|
|||
m.resetMonitor(err == nil && exitStatus.ExitCode == 0)
|
||||
|
||||
if m.shouldRestart(exitStatus.ExitCode) {
|
||||
m.container.SetRestarting(&exitStatus)
|
||||
m.container.SetRestartingLocking(&exitStatus)
|
||||
m.logEvent("die")
|
||||
m.resetContainer(true)
|
||||
|
||||
|
|
Loading…
Reference in a new issue