mirror of
https://github.com/docker/cli.git
synced 2026-08-31 18:14:29 -05:00
Merge pull request #19917 from WeiZhang555/add-lock
Lock container when set state to restarting Upstream-commit: 67d6154cc26cceccc554ebb54ae4dcbad44047e4 Component: engine
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user