Merge pull request #2621 from mheon/event_on_death

Add event on container death
This commit is contained in:
OpenShift Merge Robot
2019-03-13 12:03:07 -07:00
committed by GitHub
5 changed files with 21 additions and 3 deletions

View File

@ -89,7 +89,6 @@ func (c *Container) Start(ctx context.Context, recursive bool) (err error) {
}
// Start the container
defer c.newContainerEvent(events.Start)
return c.start()
}
@ -127,7 +126,6 @@ func (c *Container) StartAndAttach(ctx context.Context, streams *AttachStreams,
}
close(attachChan)
}()
c.newContainerEvent(events.Start)
c.newContainerEvent(events.Attach)
return attachChan, nil
}