coredns-dockerdiscovery icon indicating copy to clipboard operation
coredns-dockerdiscovery copied to clipboard

Invalid use of container.HostConfig.NetworkMode

Open jpicht opened this issue 2 years ago • 0 comments

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

jpicht avatar Jun 27 '22 13:06 jpicht