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

DNS Configuration doesn't include local network DNS #187

Open
kevinkirkup opened this issue Jun 30, 2017 · 5 comments
Open

DNS Configuration doesn't include local network DNS #187

kevinkirkup opened this issue Jun 30, 2017 · 5 comments

Comments

@kevinkirkup
Copy link

I'm working in a corporate network and I need to have the VM hosting the docker daemon to include the DNS servers for our network, otherwise I can't download the OpenShift/Kubernetes images to start a cluster in minikube/minishift.

This doesn't seem to be and issue when I use docker-machine.

I've been able to get around this by adding the DNS servers to resolve.conf and resolved.conf after the VM has been created. Due to changes in minishift however, this no longer works.

Is there a way to specify addition DNS servers that can be configured?
Is there a configuration that I should be checking?

Version Info

% brew info docker-machine-driver-xhyve
docker-machine-driver-xhyve: stable 0.3.3 (bottled), HEAD
Docker Machine driver for xhyve
https://github.com/zchee/docker-machine-driver-xhyve
/usr/local/Cellar/docker-machine-driver-xhyve/0.3.3 (3 files, 10.3MB) *
  Poured from bottle on 2017-06-30 at 08:53:44
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/docker-machine-driver-xhyve.rb
==> Dependencies
Build: go ✔
Required: opam ✔, libev ✔
Recommended: docker-machine ✔
==> Requirements
Build: git ✔
Required: macOS >= 10.10 ✔
==> Options
--without-docker-machine
	Build without docker-machine support
--without-qcow2
	Do not support qcow2 disk image format
--HEAD
	Install HEAD version
==> Caveats
This driver requires superuser privileges to access the hypervisor. To
enable, execute
    sudo chown root:wheel /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
    sudo chmod u+s /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
@kevinkirkup
Copy link
Author

Looks like this was being caused by having dnsmasq enabled. Not sure why that would be though.
After disabling dnsmasq everything seems to be working correctly.

@zchee
Copy link
Member

zchee commented Jul 1, 2017

@kevinkirkup Thanks for advice. I’ll check this isuue later.

@jasonmacdonald
Copy link

jasonmacdonald commented Oct 21, 2017

I just hit the same issue and have been wasting hours trying to figure out why I could not build an image inside minikube when following the tutorial - I kept getting errors "read: connection refused" when trying to pull an image off of dockerhub. This post guided me to turning off dnsmasq, which I forgot I even had on this laptop, CHEERS!

@igostv
Copy link

igostv commented Oct 31, 2017

@kevinkirkup @jasonmacdonald thanks a lot, disabling dnsmasq helped me too. Dnsmasq was installed as dependency to valet to service .dev domain. Is there any way to make them work simultaneously?

@roadrunner
Copy link

@kevinkirkup if you're using local dnsmasq, you need to tell the dnsmasq listen docker host interface as well.

 ~ cat /usr/local/etc/dnsmasq.conf |grep -i listen-add
#listen-address=
listen-address=127.0.0.1
listen-address=192.168.64.1

don't forget to reload dnsmasq service, after editing configuration file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants