1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Merge pull request #19917 from WeiZhang555/add-lock

Lock container when set state to restarting
This commit is contained in:
Alexander Morozov
2016-02-02 14:55:51 -08:00

View File

@@ -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)