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
ndots issue on daemon config for services #1988
Comments
Looks like ndots is almost entirely ignored. In sandbox_dns_unix.go, the number of dots is parsed only for validation. As you mentioned it is appended blindly, see sandbox_dns_unix.go:384: Moreover, ndots is treated (by libnetwork) as a boolean setting which changes resolver behavior. |
Hmm.. looks like no test case was added into that commit either |
@joeabbey I created a patch, and will have to add some tests on top. Feel free to take a look and review it |
If the dns options is specified in the daemon.json like:
If a service is launched on a network like:
docker service create --network net1 alpine top
the resolv.conf results in:
Looks like the daemon config is ignored and the ndots:0 is appended blindly
The text was updated successfully, but these errors were encountered: