Merge pull request #6954 from LK4D4/fix_container_run_after_restart_#4766
Set state running before dumping to disk Upstream-commit: 5702029a0f12cd382845e0ae1a31c61450851ee0 Component: engine
This commit is contained in:
@ -1104,10 +1104,10 @@ func (container *Container) waitForStart() error {
|
||||
c.Close()
|
||||
}
|
||||
}
|
||||
if err := container.toDisk(); err != nil {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user