Error while pulling image on macos cannot unmarshal DNS message

I have just updated docker on macos. When I try to pull a new image:

docker run alpine:3.2 ping -c 5

I get the following error:

Unable to find image ‘alpine:3.2’ locally
Pulling repository Docker
docker: Error while pulling image: Get dial tcp: lookup on cannot unmarshal DNS message.
See ‘docker run --help’.


  • the output of:
    • Moby Menu > Diagnose & Feedback on OSX
Docker for Mac: version: mac-v1.12.0-beta16.2
OS X: version 10.11.5 (build: 15F34)
logs: /tmp/20160620-135727.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

When the image is present everthing works fine:

docker run alpine ping -c 5

PING ( 56 data bytes
64 bytes from seq=0 ttl=37 time=0.172 ms
64 bytes from seq=1 ttl=37 time=0.381 ms
64 bytes from seq=2 ttl=37 time=0.275 ms
64 bytes from seq=3 ttl=37 time=0.361 ms
64 bytes from seq=4 ttl=37 time=0.353 ms ping statistics —
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.172/0.308/0.381 ms

Any idea what is going wrong?

1 Like

same problem +1 and same ip: lookup on cannot unmarshal DNS message.
Docker version 1.12.0-rc2, build 906eacd, experimental
OS X latest

Problem gone away with another internet provider :frowning: 4 hours to trash