coredns-dockerdiscovery
coredns-dockerdiscovery copied to clipboard
Invalid use of container.HostConfig.NetworkMode
Thanks for developing this plugin!
The use of container.HostConfig.NetworkMode
as an index into container.NetworkSettings.Networks
only works by accident, because the default docker bridge
mode network is named bridge
. That's not actually the name of the network that the container is running in.
Network mode to use for this container. Supported standard values are: bridge, host, none, and container:<name|id>. Any other value is taken as a custom network's name to which this container should connect to. Docker documentation