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:
1 parent
5c3efbdca0
commit
81e8ba223f
6 files changed
+76
-55
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user