it seems to me that docker for mac does not use the internal OS X DNS service for retrieving information about DNS. At work we are using Cisco VPN and the OS X client AnyConnect. This client does not modify /etc/resolv.conf rather it uses the internal OS X servcies for configuring DNS. This works quite well for many applications, but docker for mac fails.
Docker should recognize DNS settings if used in conjunction with VPN clients.
It doesn’t. I can’t pull images from our private registry and Im also not able to ping services from inside a container.
$ docker pull internal.dockerreg.lan/myimage Using default tag: latest Pulling repository internal.dockerreg.lan/myimage Error while pulling image: Get http://internal.dockerreg.lan/v1/repositories/myimage/images: dial tcp: lookup internal.dockerreg.lan on 192.168.65.1:53: no such host root@9b8355683444:/# ping internal.dockerreg.lan ping: unknown host
Im able to solve this problem if I add the output (resolver section) from scutil --dns to /etc/resolv.conf, but this file is regenerated on every restart.
Docker for Mac: version: mac-v1.12.0-beta16.2 OS X: version 10.11.5 (build: 15F34) logs: /tmp/20160627-081233.tar.gz failure: No error was detected [OK] docker-cli [OK] app [OK] menubar [OK] virtualization [OK] system [OK] osxfs [OK] db [OK] slirp [OK] moby-console [OK] logs [OK] vmnetd [OK] env [OK] moby [OK] driver.amd64-linux
OS X 10.11.5
Thankful for every advice!