Set state running before dumping to disk

Fixes #4766
Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)

Conflicts:
	daemon/container.go

Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: vieux)
This commit is contained in:
Alexandr Morozov 2014-07-10 13:19:18 +04:00 committed by Victor Vieux
parent ecd20a96df
commit 699bc47137

View file

@ -1080,10 +1080,10 @@ func (container *Container) waitForStart() error {
c.Close()
}
}
container.State.SetRunning(command.Pid())
if err := container.ToDisk(); err != nil {
utils.Debugf("%s", err)
}
container.State.SetRunning(command.Pid())
}
// We use a callback here instead of a goroutine and an chan for