Expected behavior
Resolve docker.local on host (mac) and vm’s
Actual behavior
ping docker.local
(after 5 seconds)
ping: cannot resolve docker.local: Unknown host
Information
docker run --net=host --privileged alpine ifconfig
docker0 Link encap:Ethernet HWaddr 02:42:13:4B:59:25
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:13ff:fe4b:5925%32755/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1300 (1.2 KiB) TX bytes:168 (168.0 B)
eth0 Link encap:Ethernet HWaddr C0:FF:EE:C0:FF:EE
inet addr:192.168.65.2 Bcast:0.0.0.0 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51187 errors:0 dropped:0 overruns:0 frame:0
TX packets:4545 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:76529919 (72.9 MiB) TX bytes:287958 (281.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%32755/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:49 (49.0 B) TX bytes:49 (49.0 B)
pinata diagnose
OS X: version 10.11.5 (build: 15F34)
Docker.app: version v1.11.1-beta13.1
Running diagnostic tests:
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x
dig
; <<>> DiG 9.8.3-P1 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53039
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 15
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 518400 IN NS m.root-servers.net.
. 518400 IN NS a.root-servers.net.
. 518400 IN NS b.root-servers.net.
. 518400 IN NS c.root-servers.net.
. 518400 IN NS d.root-servers.net.
. 518400 IN NS e.root-servers.net.
. 518400 IN NS f.root-servers.net.
. 518400 IN NS g.root-servers.net.
. 518400 IN NS h.root-servers.net.
. 518400 IN NS i.root-servers.net.
. 518400 IN NS j.root-servers.net.
. 518400 IN NS k.root-servers.net.
. 518400 IN NS l.root-servers.net.
;; ADDITIONAL SECTION:
a.root-servers.net. 3518627 IN A 198.41.0.4
b.root-servers.net. 432884 IN A 192.228.79.201
c.root-servers.net. 432884 IN A 192.33.4.12
d.root-servers.net. 432884 IN A 199.7.91.13
e.root-servers.net. 432884 IN A 192.203.230.10
f.root-servers.net. 432884 IN A 192.5.5.241
g.root-servers.net. 432884 IN A 192.112.36.4
h.root-servers.net. 432884 IN A 198.97.190.53
i.root-servers.net. 432884 IN A 192.36.148.17
j.root-servers.net. 432884 IN A 192.58.128.30
k.root-servers.net. 432884 IN A 193.0.14.129
l.root-servers.net. 432884 IN A 199.7.83.42
m.root-servers.net. 3599227 IN A 202.12.27.33
a.root-servers.net. 432884 IN AAAA 2001:503:ba3e::2:30
b.root-servers.net. 432884 IN AAAA 2001:500:84::b
;; Query time: 57 msec
;; SERVER: 10.16.99.129#53(10.16.99.129)
;; WHEN: Fri Jun 3 14:34:03 2016
;; MSG SIZE rcvd: 492
dig NS docker.local
; <<>> DiG 9.8.3-P1 <<>> NS docker.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 30093
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;docker.local. IN NS
;; AUTHORITY SECTION:
. 75699 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016060301 1800 900 604800 86400
;; Query time: 3 msec
;; SERVER: 10.16.99.129#53(10.16.99.129)
;; WHEN: Fri Jun 3 14:34:52 2016
;; MSG SIZE rcvd: 105
dig docker.local +trace
; <<>> DiG 9.8.3-P1 <<>> docker.local +trace
;; global options: +cmd
;; Received 12 bytes from 10.16.99.129#53(10.16.99.129) in 2 ms
logs:
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: Application version: 1.11.1-beta13.1 (8193)
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: OSX Version: Version 10.11.5 (Build 15F34)
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: migrator: start migration process
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: migrator: previous install detected
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: migrator: previous version is 1.11.1-beta13.1
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: migrator: no migration needed, you are good to go!
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: migrator: end of migration process
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: event tracker initialized
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: Limited access: checking...
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: Bundle path: /Applications/Docker.app
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1793] <Notice>: Client reports version 1, commit e9f58bbe60f0debccc097b7d27cad200556ec6f5
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1793] <Notice>: EOF reading packet from Unix domain socket: closing
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1793] <Error>: Failed to read command from client
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: com.docker.docker commit: e9f58bbe60f0debccc097b7d27cad200556ec6f5 wants version 15
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: com.docker.vmnetd commit: e9f58bbe60f0debccc097b7d27cad200556ec6f5 has version 15
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: probe of /var/tmp/com.docker.vmnetd.socket successful: not reinstalling component
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Notice>: Client reports version 1, commit e9f58bbe60f0debccc097b7d27cad200556ec6f5
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: client with uid 109228502 requests com.docker.vmnetd install symlinks
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /usr/local/bin/docker is a symlink
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /var/run/docker.sock is a symlink or a socket
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /usr/local/bin/docker-compose is a symlink
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /var/run/docker.sock is a symlink or a socket
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /usr/local/bin/notary is a symlink
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /var/run/docker.sock is a symlink or a socket
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /usr/local/bin/pinata is a symlink
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /var/run/docker.sock is a symlink or a socket
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /usr/local/bin/docker-machine is a symlink
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1794] <Critical>: File /var/run/docker.sock is a symlink or a socket
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: Symlinks are valid.
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1783] <Notice>: com.docker.osx.hyperkit.linux launched with PID 1795
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1795] <Notice>: Acquired task manager lock
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1795] <Notice>: Starting com.docker.db, com.docker.osxfs, com.docker.slirp, com.docker.osx.hyperkit.linux, com.docker.driver.amd64-linux
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1795] <Notice>: Start com.docker.db (pid 1798)
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1795] <Notice>: Start com.docker.osxfs (pid 1799)
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1795] <Notice>: Start com.docker.slirp (pid 1800)
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1795] <Notice>: Start com.docker.osx.hyperkit.linux (pid 1801)
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1795] <Notice>: Start com.docker.driver.amd64-linux (pid 1802)
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: Logging to Apple System Log
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: Setting handler to ignore all SIGPIPE signals
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: starting port_forwarding port_control_path:fd:4 vsock_path:/Users/xxx/Library/Containers/com.docker.docker/Data/@connect
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: attempting to reconnect to database on unix /Users/xxx/Library/Containers/com.docker.docker/Data/s40
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1801] <Notice>: API server starting
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1801] <Notice>: 🍀 socket path is: /Users/xxx/Library/Containers/com.docker.docker/Data/s20
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1801] <Notice>: > socket removed.
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1799] <Notice>: Logging to Apple System Log
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1801] <Notice>: VM has shutdown at 2016-06-03 14:16:05 -0700 PDT
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: Acquired hypervisor lock
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: Docker is not responding: waiting 0.5s
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: hypervisor: native
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: filesystem: osxfs
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1799] <Notice>: Using protocol TwoThousand msize 16384
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: Hypervisor: native; BootProtocol: direct; UefiBootDisk: /Users/xxx/UefiBoot.qcow2
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: Launching: /Applications/Docker.app/Contents/MacOS/com.docker.hyperkit -A -m 2G -c 4 -u -s 0:0,hostbridge -s 31,lpc -s 2:0,virtio-ipc,uuid=681ca3d5-4a67-4865-8676-094ffa8a8ddf,path=/Users/xxx/Library/Containers/com.docker.docker/Data/s50,macfile=/Users/xxx/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/mac.0 -s 3,virtio-blk,file:///Users/xxx/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2,format=qcow -s 4,virtio-9p,path=/Users/xxx/Library/Containers/com.docker.docker/Data/s40,tag=db -s 5,virtio-rnd -s 6,virtio-9p,path=/Users/xxx/Library/Containers/com.docker.docker/Data/s51,tag=port -s 7,virtio-sock,guest_cid=3,path=/Users/xxx/Library/Containers/com.docker.docker/Data,guest_forwards=2376;1525 -l com1,autopty=/Users/xxx/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty,log=/Users/xxx/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/console-ring -f kexec,/Applications/Docker.app/Contents/Resources/moby/vmlinuz64,/Applications/Docker.app/Contents/Resources/moby/initrd.img,earlyprintk=serial console=ttyS0 com.docker.driverDir="/Users/xxx/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux", com.docker.database="com.docker.driver.amd64-linux" -F /Users/xxx/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/hypervisor.pid
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: reconnected transport layer
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: allowing binds to any IP addresses
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: Creating slirp server pcap_settings:disabled peer_ip:192.168.65.2 local_ip:192.168.65.1
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1805] <Notice>: Starting hyperkit
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: Jun 3 14:16:27 Docker[1805] <Notice>: Starting hyperkit
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: PPP.negotiate: received ((magic VMN3T)(version 15)(commit e9f58bbe60f0debccc097b7d27cad200556ec6f5))
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: PPP.negotiate: received (Ethernet 681ca3d5-4a67-4865-8676-094ffa8a8ddf)
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: PPP.negotiate: sending ((mtu 1500)(max_packet_size 1550)(client_macaddr c0:ff:ee:c0:ff:ee))
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: PPP.listen: called a second time: doing nothing
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1800] <Notice>: TCP/IP ready
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: mirage_block_open file:///Users/xxx/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 buffered = true
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: mirage_block_open returning 0
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: mirage_block_stat
Jun 3 14:16:27 MACC02QV8JFG8WP Docker[1802] <Notice>: vsock init 7:0 = /Users/xxx/Library/Containers/com.docker.docker/Data, guest_cid = 3
Jun 3 14:16:29 MACC02QV8JFG8WP Docker[1802] <Notice>:
rdmsr to register 0x34 on vcpu 3
Jun 3 14:16:29 MACC02QV8JFG8WP Docker[1802] <Notice>: Docker is not responding: waiting 0.5s
--- last message repeated 5 times ---
Jun 3 14:16:32 MACC02QV8JFG8WP Docker[1799] <Error>: transfused: mount
Jun 3 14:16:32 MACC02QV8JFG8WP Docker[1799] <Error>: transfused: /bin/fusermount
Jun 3 14:16:32 MACC02QV8JFG8WP Docker[1799] <Error>: transfused: -o
Jun 3 14:16:32 MACC02QV8JFG8WP Docker[1799] <Error>: transfused: allow_other,max_read=1048576,subtype=osxfs
Jun 3 14:16:32 MACC02QV8JFG8WP Docker[1799] <Error>: transfused: /Mac
Jun 3 14:16:32 MACC02QV8JFG8WP Docker[1799] <Error>: transfused:
Jun 3 14:16:32 MACC02QV8JFG8WP Docker[1799] <Notice>: osxfs tracing: OFF
Jun 3 14:16:32 MACC02QV8JFG8WP Docker[1800] <Notice>: Using protocol TwoThousand msize 8192
Jun 3 14:16:33 MACC02QV8JFG8WP Docker[1802] <Notice>: Docker is responding
Jun 3 14:16:33 MACC02QV8JFG8WP Docker[1801] <Notice>: VM has started at 2016-06-03 14:16:33 -0700 PDT
Jun 3 14:16:33 MACC02QV8JFG8WP Docker[1783] <Notice>: dockerState = running
Jun 3 14:26:52 MACC02QV8JFG8WP Docker[1800] <Error>: Socket.TCPV4.read 52.85.83.154:443: caught Unix.Unix_error(Unix.ECONNRESET, "read", "") returning Eof
Jun 3 14:31:42 MACC02QV8JFG8WP Docker[2306] <Notice>: EOF reading packet from Unix domain socket: closing
Jun 3 14:31:42 MACC02QV8JFG8WP Docker[2306] <Critical>: Failed to read hello from client
Jun 3 14:31:42 MACC02QV8JFG8WP Docker[1800] <Error>: server loop caught Failure("Caught EOF on underlying FLOW"): no further requests will be processed