mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00:00
Merge pull request #6954 from LK4D4/fix_container_run_after_restart_#4766
Set state running before dumping to disk
This commit is contained in:
+2
-2
@@ -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