Do network attach on docker event rather than intercepting start and restart commands.

This means it also works when the docker daemon restarts a container.
This commit is contained in:
Bryan Boreham committed 2015-09-01 17:48:12 +01:00
1 parent 5c3efbdca0
commit 81e8ba223f
6 files changed
+76 -55

No files matched your search

+2
View File
@@ -226,6 +226,8 @@ func (alloc *Allocator) ContainerDied(ident string) {
}
}
func (alloc *Allocator) ContainerStarted(ident string) {}
// Delete (Sync) - release all IP addresses for container with given name
func (alloc *Allocator) Delete(ident string) error {
errChan := make(chan error)