-
Notifications
You must be signed in to change notification settings - Fork 117
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
Docker CE 17.06.0 has stopped respecting the host's DNS settings #1827
Comments
We've experienced a similar issue. For us, we could no longer pull from our internal Docker registry. From inside the docker-for-mac VM, we could resolve our docker registry host without the domain, but not with the domain. E.g. Our workaround was to add our registry FQDN to
After doing this, we can pull again. We also had some builds failing inside Docker containers by not being able to look up our Nexus repository by FQDN. Again, our workaround was to add the FQDN to the host.
This is true even though we do have the search domain enabled on our hosts:
I assume this will affect a great many people. Hopefully, these workarounds can help weather the storm until it's fixed. |
I am running into this issue right now. If I ping a fqdn managed by a local dns server running inside a docker container for dev purposes, depending on where I ping it, will succeed or fail accordingly. from inside the container:
from output the container:
I expect them to work in both situations. I am running docker version:
|
Thanks for your report. I think this is the same as #1811 -- there's a bug in 17.06 which prevents |
The fix for the
If this doesn't fix the problem, could you upload a fresh diagnostic and let me know? Thanks again for your report. |
Yup, looks good. Thanks! |
I was having the same with the newest version when using VPN and having Docker started before VPN connection was established. Restarting Docker after connecting to VPN solves the issue. |
I use https proxy for minikube and docker. Need set https proxy env var before docker push. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Before updating to the latest version of Docker, I used to be able to log into my private registry that is accessed via VPN.
Actual behavior
But after upgrading to below version, this has stopped working.
Version 17.06.0-ce-mac18 (18433)
Channel: stable
d9b66511e0
I am not entirely sure if the Docker client is a local OSX executable or if it goes to VM before it logs into a private registry. But here is the
/etc/resolv.conf
inside the VM:Which obviously does not match my host's DNS settings, managed by my VPN client.
Information
Diagnostic ID: B2A96BD4-8D88-4B98-8B2A-FF80F6267ED7
Steps to reproduce the behavior
On a fresh install of Docker for Mac, while the host is pointing to another name server:
The text was updated successfully, but these errors were encountered: