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
@@ -130,6 +130,8 @@ func (n *Nameserver) ReverseLookup(ip address.Address) (string, error) {
return match.Hostname, nil
}
func (n *Nameserver) ContainerStarted(ident string) {}
func (n *Nameserver) ContainerDied(ident string) {
n.Lock()
entries := n.entries.tombstone(n.ourName, func(e *Entry) bool {