-
Notifications
You must be signed in to change notification settings - Fork 18.6k
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Windows docker doesn't honor --dns-search option #29686
Comments
--dns-search
option
--dns-search
option
@hongxima a couple of things doesnt work in windows docker ATM, these are documented at https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/container-networking, |
The ability to resolve short domain name is very critical for dns-based service discovery in mainstream container orchestration implementations, it's a mandatory when the service names should be isolated by namespaces or tenants. dns-search items are pass in as the configurations but not taking effect within container:
|
@git-jiby-me thanks for pointing me to that article! I think it's a bit outdated as "--dns" was an already supported item as you may see in the ipconfig output. |
/cc @msabansal @mavenugo |
Working on a fix. The platform work has been done. Docker patch will be coming after this PR is approved microsoft/hcsshim#98 |
Is this issue resolved now? |
Yes. It should work with latest docker. |
Does not seem to be working for me. Also confusing if I need to
|
Sorry should have added more information. This requires platform plus docker support. Platform work was part of next windows milestone. I will check if this is part of the patch we are releasing next. If your list is static then you can perhaps use the following workaround: SHELL ["powershell"] to modify the images with the search list |
@msabansal Any news on this from the MS platform side? I'm still seeing the behavior reported here. Docker info with OS version
Thanks! |
Starting with 17.06 this should be available on older Windows versions: #33311 You can download and test release clients from here: https://master.dockerproject.org/windows/amd64/docker-17.06.0-dev.zip |
Very cool, thanks! |
@friism can this issue be closed, or anything left to be addressed? |
@thaJeztah this works on Windows version 1709 with the latest build. Docker build
Docker network creation
Container run:
|
Thanks for confirming! I'll close this issue, as it's resolved 👍 |
BUG REPORT INFORMATION
Description
--dns-search
option doesn't take effect on Windows containers.Steps to reproduce the issue:
docker run --rm -t --dns 8.8.8.8 --dns-search github.com --network [your-docker-network] microsoft/windowsservercore ifconfig /all
docker run --rm -t --dns 8.8.8.8 --dns-search github.com --network [your-docker-network] microsoft/windowsservercore ping help
Describe the results you received:
Output for ipconfig within container:
Output for ping within container:
Describe the results you expected:
items specified in
--dns-search
should be prsented in field "DNS Suffix Search List" of theipconfig /all
output.ping help
in the container should be the same asping help.github.com
which is reachable.Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
It's an always behavior happens to both VMware virtual machine and AWS EC2 host.
The text was updated successfully, but these errors were encountered: