for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: server misbehaving

Open nabedge opened this issue 9 years ago • 127 comments

$ uname -a
Darwin nabedge.local 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64
$ docker-compose --version
docker-compose version 1.11.1, build 7c5d5e4
$ docker --version
Docker version 1.13.1, build 092cba3
$ docker pull centos:6.8
Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: server misbehaving

Is this same bug ? https://github.com/docker/for-mac/issues/1025

nabedge avatar Feb 21 '17 13:02 nabedge

I have the same issues. Uninstalled/Reset and Re-installed. Nutching diff.

macOS 10.12.3

docker version

Client: Version: 1.13.1 API version: 1.26 Go version: go1.7.5 Git commit: 092cba3 Built: Wed Feb 8 08:47:51 2017 OS/Arch: darwin/amd64

Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Go version: go1.7.5 Git commit: 092cba3 Built: Wed Feb 8 08:47:51 2017 OS/Arch: linux/amd64 Experimental: true

Errors

docker pull amazonlinux Using default tag: latest Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: server misbehaving

docker pull centos:6.8 Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: server misbehaving

LevonBecker avatar Feb 22 '17 03:02 LevonBecker

@nabedge please use the :whale: menu :arrow_right: `Diagnose and feedback" to upload a diagnostic log ball and add the output here.

@LevonBecker, please do the same but create a fresh issue, although your symptoms seem similar the underlying cause could be different and it is far easier to de-dup issues than it is to split a single issue into two.

ijc avatar Feb 22 '17 10:02 ijc

Thanks. I have solved this problem by re-install (uninstall -> install) the same version docker.

nabedge avatar Feb 22 '17 14:02 nabedge

sure thing

LevonBecker avatar Feb 22 '17 16:02 LevonBecker

I just had the same problem and a re-install fixed it.

nicksnyder avatar Feb 28 '17 05:02 nicksnyder

have the same problem but re-installing does not help. Diagnose shows all OK

rainder avatar Feb 28 '17 09:02 rainder

same problem after reinstall Fixed when switching to beta version

ferbass avatar Feb 28 '17 13:02 ferbass

clean reinstall (1.13.1) did not fix for me. Switching to beta version did fix it for me.

LevonBecker avatar Feb 28 '17 19:02 LevonBecker

my problem was fixed when I set 8.8.8.8 as a dns server

rainder avatar Feb 28 '17 20:02 rainder

8.8.8.8 didn't fix mine... just installing beta. It's such a random issue with random solutions that work. Very odd /shrug

LevonBecker avatar Feb 28 '17 23:02 LevonBecker

@nicksnyder @rainder @ferbass @levonbecker There are several DNS fixes in the latest 17.03.x beta/stable releases, which may fix the issue for you. If you still experience problems with the latest version, please open new issues with a diagnostic ID. This is a closed issue and to figure out what is going on we would have to look at the logs. Thanks!

MagnusS avatar Mar 08 '17 09:03 MagnusS

Thank you @MagnusS the problems was solved on this version to me

Version 17.03.0-ce-mac2 (15654) Channel: stable 1d7d97bbbd

ferbass avatar Mar 09 '17 03:03 ferbass

docker-machine ssh default
sudo vi /etc/resolv.conf

change nameserver to 8.8.8.8

MikhailKaduchka avatar Mar 09 '17 12:03 MikhailKaduchka

Hi, I've just installed docker CE today, following instructions at https://docs.docker.com/engine/installation/linux/ubuntu/ and get this error as well when trying to run or pull anything. Ubuntu 14.04LTS:

lsb_release -a LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty

Docker 17.03: builder@kudu:~$ docker version Client: Version: 17.03.0-ce API version: 1.26 Go version: go1.7.5 Git commit: 3a232c8 Built: Tue Feb 28 07:57:58 2017 OS/Arch: linux/amd64

Server: Version: 17.03.0-ce API version: 1.26 (minimum version 1.12) Go version: go1.7.5 Git commit: 3a232c8 Built: Tue Feb 28 07:57:58 2017 OS/Arch: linux/amd64 Experimental: false

and /etc/resolve.cnf: nameserver 8.8.8.8 nameserver 8.8.4.4

Any suggestions appreciated, thanks!

richarda23 avatar Mar 10 '17 12:03 richarda23

I had the same error when I was running docker pull hello-world

root@someubuntumc:~# docker pull hello-world
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.1.1:53: no such host

I then realized that I did not configure proxy in the docker config file. Add these details to your docker config (depending on your os), I am using ubuntu so the file is - /etc/default/docker/

export http_proxy="http://user:[email protected]:port"
export https_proxy="https://user:[email protected]:port"

Restart docker (service docker restart) and this solved for me

ranaskr avatar Mar 16 '17 12:03 ranaskr

DNS server set to 8.8.8.8 fix the problem for me (Win10)

pnowy avatar Apr 16 '17 12:04 pnowy

Same issue for Docker for Mac:

~$ docker pull ubuntu
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.65.2:47975->192.168.65.1:53: i/o timeout

Setting the DNS Server for the Docker Daemon via "Preferences > Daemon > Advanced" based upon advice given here by @thaJeztah via putting in the following value worked for me (no reinstall required):

{ "dns" : [ "8.8.8.8", "8.8.4.4" ]}

carusology avatar Apr 19 '17 20:04 carusology

all this did not help me. If you are in a company behinde a proxy use this guide, it did solve my problem https://docs.docker.com/engine/admin/systemd/#manually-creating-the-systemd-unit-files

umbruch avatar Apr 28 '17 06:04 umbruch

I went lunch and it's worked when i'm back :D

zatamine avatar May 25 '17 13:05 zatamine

Changing DNS server to 8.8.8.8 helped me. (Windows 10)

akki0996 avatar Jul 05 '17 01:07 akki0996