Merge pull request #768 from rajasec/events-destroy
Not showing up the events for destroyed container
This commit is contained in:
commit
ee42f8bbb6
|
@ -37,6 +37,13 @@ information is displayed once every 5 seconds.`,
|
|||
if err != nil {
|
||||
fatal(err)
|
||||
}
|
||||
status, err := container.Status()
|
||||
if err != nil {
|
||||
fatal(err)
|
||||
}
|
||||
if status == libcontainer.Destroyed {
|
||||
fatalf("container with id %s is not running", container.ID())
|
||||
}
|
||||
var (
|
||||
stats = make(chan *libcontainer.Stats, 1)
|
||||
events = make(chan *event, 1024)
|
||||
|
|
Loading…
Reference in New Issue