зеркало из https://github.com/microsoft/docker.git
Set state running before dumping to disk
Fixes #4766 Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
This commit is contained in:
Родитель
8a4f1ad837
Коммит
97a3807901
|
@ -1102,10 +1102,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
|
||||
|
|
Загрузка…
Ссылка в новой задаче