Resurrect apparently-dead containers on ContainerStarted event

This commit is contained in:
Bryan Boreham authored and Matthias Radestock committed 2016-02-04 13:49:43 +00:00
1 parent 1d3c80ab49
commit 07b79568dd
1 file changed
+5 -1
+5 -1
View File
@@ -263,7 +263,11 @@ func (alloc *Allocator) removeDeadContainers() {
}
}
func (alloc *Allocator) ContainerStarted(ident string) {}
func (alloc *Allocator) ContainerStarted(ident string) {
alloc.actionChan <- func() {
delete(alloc.dead, ident) // delete is no-op if key not in map
}
}
// Delete (Sync) - release all IP addresses for container with given name
func (alloc *Allocator) Delete(ident string) error {