Auth.docker.io on 192.168.65.1:53: no such host

I had this issue pop up today on Version 1.12.1-beta24 (build: 11525) and was able to resolve it by exiting docker for mac, resetting my network connection, and then starting docker back up. Happened after starting in the morning and my box had been asleep overnight

See the work around in https://github.com/docker/docker/issues/24344

My version is Version 1.12.1 (build: 12133). I am unable to do a docker login to a private registry that I am running on a hosted server.

I simply get Error response from daemon: Get /v1/users/: dial tcp: lookup on 192.168.65.1:53: no such host.

Any help on this? I cannot get it to work. I am able to log into public registries though (quay.io).

Same here with 1.12.1. Still not solved.

I was also getting the same issue in my centos7 but got fixed! Below was the error log in the console.

[visruth@localhost Desktop]$ sudo docker --version
Docker version 1.10.3, build cb079f6-unsupported
[visruth@localhost Desktop]$ sudo docker pull debian
[sudo] password for visruth: 
Using default tag: latest
Trying to pull repository docker.io/library/debian ... 
Pulling repository docker.io/library/debian
Get https://registry-1.docker.io/v1/repositories/library/debian/tags/latest: dial tcp: lookup registry-1.docker.io on 192.168.1.1:53: no such host
Get https://registry-1.docker.io/v1/repositories/library/debian/tags/latest: dial tcp: lookup registry-1.docker.io on 192.168.1.1:53: no such host

How I fixed is my system was connected with LAN and WLAN. The internet was on WLAN so I disabled LAN. Then it worked fine.

[visruth@localhost Desktop]$ sudo docker pull debian
Using default tag: latest
Trying to pull repository docker.io/library/debian ... 
latest: Pulling from docker.io/library/debian
386a066cd84a: Pull complete 
Digest: sha256:c1ce85a0f7126a3b5cbf7c57676b01b37c755b9ff9e2f39ca88181c02b985724
Status: Downloaded newer image for docker.io/debian:latest

Now, Iā€™m using latest Docker version 1.12.3, build 6b644ec and there is no issue.

I use Docker 1.12.3 and I have this issue:

docker login https://private.registry.vpn [15:05:20]
Username: username
Password:
Error response from daemon: Get https://private.registry.vpn/v1/users/: dial tcp: lookup private.registry.vpn on 192.168.65.1:53: no such host

elapsed time 5m25s

docker version [15:05:03]
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Wed Oct 26 23:26:11 2016
OS/Arch: darwin/amd64

Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Wed Oct 26 23:26:11 2016
OS/Arch: linux/amd64

what can I do to make it work?

same trouble for me:

docker-compose up

Pulling registry (registry:2)ā€¦
Trying to pull repository docker.io/library/registry ā€¦
Pulling repository docker.io/library/registry
Error while pulling image: Get https://index.docker.io/v1/repositories/library/registry/images: dial tcp: lookup index.docker.io on ip: no such host
ERROR: Error while pulling image: Get https://index.docker.io/v1/repositories/library/registry/images: dial tcp: lookup index.docker.io on ip:53: no such host
using: docker-compose.yml
registry:
image: registry:2
ports:
- ip:5000:5000
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
volumes:

This was previously working for me with a private repository hosted by a local artifactory instance but now Iā€™m getting the same error as the OP, except with my private registry.

Same issue with latest docker
docker version
Client:
Version: 17.03.0-ce
API version: 1.26
Go version: go1.7.5
Git commit: 60ccb22
Built: Thu Feb 23 10:40:59 2017
OS/Arch: darwin/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:52:04 2017
OS/Arch: linux/amd64
Experimental: true

level=warning msg=ā€œError while waiting for the server.dial tcp: lookup all on 192.168.65.1:53: no such hostā€

I just tried the latest stable and latest edge versions. Issue still present.

Client:
Version: 17.03.1-ce-rc1
API version: 1.27
Go version: go1.7.5
Git commit: 3476dbf
Built: Fri Mar 17 00:27:41 2017
OS/Arch: darwin/amd64

Server:
Version: 17.03.1-ce-rc1
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: 3476dbf
Built: Wed Mar 15 20:28:18 2017
OS/Arch: linux/amd64
Experimental: true

Iā€™m seeing the same issue with this version of Docker on the latest version of Mac OSX Sierra

Actually, as I continued to troubleshoot this, I realized that my PC was connected to the wrong wireless network in my office. I previously experienced this when connected using a VPN. Itā€™s possible that this was a network issue, not a docker issue.

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

I am also getting above error while I try to pull Envoy on dockerā€¦ Anybody know fix for this?

Still having this issue on a fresh install on Win10.

Dec 2019/ Windows 10 , still facing the issue. Setting DNS to 8.8.8.8 hasnā€™t fixed it either.
Docker Version 19.03.5 build 633a0ea

Itā€™s 2023 May 25, I am with docker version 23.05. I encounter this issue like on and off when I try to build an image. It works now. It doesnā€™t work the next time.

ERROR: failed to solve: failed to fetch oauth token: Post ā€œhttps://auth.docker.io/tokenā€: dial tcp: lookup auth.docker.io on 192.168.2.1:53: server misbehaving

Plus, I also had the same issue attempting to use terraform.

What on earth is this 192.168.2.1:53