Can't get to image registry

Expected behavior

Download golang image, compile software, run container.

Actual behavior

nut $ docker run -i -t --rm -v $PWD:/go/src/github.com/matthieudelaro/nut -w /go/src/github.com/matthieudelaro/nut golang:1.6 env GOOS=darwin GOARCH=amd64 go build -o nut.yml
Unable to find image ‘golang:1.6’ locally
Pulling repository Docker Hub Container Image Library | App Containerization
docker: Error while pulling image: Get https://index.docker.io/v1/repositories/library/golang/images: dial tcp: lookup index.docker.io on 192.168.65.1:53: server misbehaving.
See ‘docker run --help’.
nut $

Information

  • the output of:

    • pinata diagnose -u on OSX
      $ pinata diagnose -u
      OS X: version 10.11.4 (build: 15E65)
      Docker.app: version v1.11.1-beta11
      Running diagnostic tests:
      [OK] docker-cli
      [OK] Moby booted
      [OK] driver.amd64-linux
      [OK] vmnetd
      [OK] osxfs
      [OK] db
      [OK] slirp
      [OK] menubar
      [OK] environment
      [OK] Docker
      [OK] VT-x
      Docker logs are being collected into /tmp/20160512-170354.tar.gz
      Most specific failure is: No error was detected
      Your unique id is: 3238A6A4-0B4C-433C-82B0-FEF65769C5F8
      Please quote this in all correspondence.
  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )
    OSX 10.11.4

nut $ docker -v
Docker version 1.11.1, build 5604cbe

nut $ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.94.0.1 netmask 0xff000000
nd6 options=1
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether ee:1f:sd:05:5a:ce
inet6 fe80::8a1f:a1ff:fe00:5ace%en0 prefixlen 64 scopeid 0x4
inet 192.168.1.109 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=1
media: autoselect
status: active
en1: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500
options=60<TSO4,TSO6>
ether aa:00:e2:56:ca:a0
media: autoselect
status: inactive
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
ether aa:00:e2:56:ca:ce
media: autoselect
status: inactive
awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484
ether 5a:44:52:92:23:ee
inet6 fe80::5844:52ff:fe92:f79c%awdl0 prefixlen 64 scopeid 0x7
nd6 options=1
media: autoselect
status: active
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether 8a:1f:f1:a0:6b:ce
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en1 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 5 priority 0 path cost 0
nd6 options=1
media:
status: inactive

nut $

Steps to reproduce the behavior

  1. git clone git@github.com:matthieudelaro/nut.git --recursive
  2. docker run -i -t --rm -v $PWD:/go/src/github.com/matthieudelaro/nut -w /go/src/github.com/matthieudelaro/nut golang:1.6 env GOOS=darwin GOARCH=amd64 go build -o nut.yml

Hi!

You had a DNS issue (port 53) on the NS Lookup of index.docker.io. Please check your DNS configuration and/or try again.

HTH,
Alexandre

Hi!
Yep, though so and did check DNS configuration as well as network setting. Also restarted docker service, and performed a reset to default.
Did reboot the Mac OS and changed networks a couple times (work office lan, coffe shop wifi), in the end started working after changing network again (using home wifi).

Thanks!