kevinjqiu / coredns-dockerdiscovery

Docker Discovery Plugin for CoreDNS
Apache License 2.0
62 stars 29 forks source link

Use correct event msg params and improve log #4

Closed sashaaro closed 6 years ago

sashaaro commented 6 years ago

Just noted: Sometimes "network:disconnect" throws "unable to find network settings for the network" error. container.HostConfig.NetworkMode contains value while Networks map key is not exist in container.NetworkSettings . Example from my case: container.NetworkSettings equals { "SandboxKey": "/var/run/docker/netns/8a2df831a89f" } container.HostConfig.NetworkMode equals "my_network" Merge with squash

kevinjqiu commented 6 years ago

Thanks @sashaaro