Merge pull request #47003 from LarsSven/fix-container-start-time

Move StartedAt time to before starting the container
This commit is contained in:
Paweł Gronowski
2024-05-07 14:58:27 +02:00
committed by GitHub
6 changed files with 25 additions and 13 deletions

View File

@@ -254,7 +254,7 @@ func (daemon *Daemon) ProcessEvent(id string, e libcontainerdtypes.EventType, ei
}
return err
}
c.SetRunning(ctr, tsk, false)
c.SetRunningExternal(ctr, tsk)
c.HasBeenManuallyStopped = false
c.HasBeenStartedBefore = true
daemon.setStateCounter(c)