Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions libpod/container_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,13 @@ func (c *Container) start() error {

c.state.State = ContainerStateRunning

// While we hold the lock, ensure the container is still running.
// The container could have already stopped by the time "$runtime start"
// exits and we mistakenly report it as "running".
if err := c.runtime.state.UpdateContainer(c); err != nil {
return err
}

if c.config.HealthCheckConfig != nil {
if err := c.updateHealthStatus(HealthCheckStarting); err != nil {
logrus.Error(err)
Expand Down