Docker Community Forums

Share and learn in the Docker community.

DNS query i/o timeout

docker
beta

(Ye Wang) #1

Expected behavior

Trying pull docker images from quay.io. But getting a DNS time out error. But I was able perform the EXACT same pull insider a VirtualBox VM with Debian guest OS.

Actual behavior

Error response from daemon: Get https ://quay.io/v1/_ping: dial tcp: lookup quay.io on 192.168.65.1:53: read udp 192.168.65.2:47676->192.168.65.1:53: i/o timeout

Information

Diagnostic ID: 54E410A9-0120-4F92-982D-E8E66CD4946F

Docker for Mac: version: mac-v1.12.0-beta16.2
OS X: version 10.11.4 (build: 15E65)
logs: /tmp/20160624-113014.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

  • the output of:
    • Moby Menu > Diagnose & Feedback on OSX
  • a reproducible case if this is a bug, Dockerfiles FTW
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )

Steps to reproduce the behavior

  1. docker pull quay.io/letsencrypt/letsencrypt
  2. getting DNS timeout error as noted above.

$ docker pull quay.io/letsencrypt/letsencrypt
Using default tag: latest
Error response from daemon: Get https ://quay.io/v1/_ping: dial tcp: lookup quay.io on 192.168.65.1:53: read udp 192.168.65.2:47676->192.168.65.1:53: i/o timeout
$ docker login -e="." -u=“USERNAME” -p=“PASSWORD” quay.io
Flag --email has been deprecated, will be removed in 1.13.

Error response from daemon: Get https ://quay.io/v1/users/: dial tcp: lookup quay.io on 192.168.65.1:53: read udp 192.168.65.2:41231->192.168.65.1:53: i/o timeout

$ docker login -e="." -u=“USERNAME” -p=“PASSWORD” quay.io
Flag --email has been deprecated, will be removed in 1.13.
Error response from daemon: Get https ://quay.io/v1/users/: dial tcp: lookup quay.io on 192.168.65.1:53: read udp 192.168.65.2:38218->192.168.65.1:53: i/o timeout


(Aferrandini) #2

The same happens to me.
I’m using Docker for Mac (native) and I can’t resolve the hosts included in the /private/etc/hosts file.

I tried to add the hosts file in /Users/<username>/Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux/etc but doesn’t work.

I’m doing this to add a private trusted registry.


(Aferrandini) #3

I have created a repo with a docker-compose project, to solve this problem.