mirror of https://github.com/docker/docs.git
Merge pull request #6954 from LK4D4/fix_container_run_after_restart_#4766
Set state running before dumping to disk
This commit is contained in:
commit
5702029a0f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue