Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid use of container.HostConfig.NetworkMode #25

Open
jpicht opened this issue Jun 27, 2022 · 0 comments
Open

Invalid use of container.HostConfig.NetworkMode #25

jpicht opened this issue Jun 27, 2022 · 0 comments

Comments

@jpicht
Copy link
Contributor

jpicht commented Jun 27, 2022

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 added a commit to jpicht/coredns-dockerdiscovery that referenced this issue Jun 27, 2022
kevinjqiu pushed a commit that referenced this issue Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant