Docker Community Forums

Share and learn in the Docker community.

During login to docker I receive: Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: dial tcp: lookup proxy.example.com on 8.8.8.8:53: no such host

Hello…
I just installed docker on Ubuntu 20.04 LTS, as below:

Client: Docker Engine - Community
** Version: 20.10.6**
** API version: 1.41**
** Go version: go1.13.15**
** Git commit: 370c289**
** Built: Fri Apr 9 22:47:17 2021**
** OS/Arch: linux/amd64**
** Context: default**
** Experimental: true**

Server: Docker Engine - Community
** Engine:**
** Version: 20.10.6**
** API version: 1.41 (minimum version 1.12)**
** Go version: go1.13.15**
** Git commit: 8728dd2**
** Built: Fri Apr 9 22:45:28 2021**
** OS/Arch: linux/amd64**
** Experimental: false**
** containerd:**
** Version: 1.4.6**
** GitCommit: d71fcd7d8303cbf684402823e425e9dd2e99285d**
** runc:**
** Version: 1.0.0-rc95**
** GitCommit: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7**
** docker-init:**
** Version: 0.19.0**
** GitCommit: de40ad0**

When I try to run “docker run hello-world” I receive the following error message:

docker: Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: dial tcp: lookup proxy.example.com on 8.8.8.8:53: no such host.

This message appears after any docker command, including “login”.
Can anyone help me get out of this?
Thank you and best regards.

Gustavo.

My /etc/resolv.conf is already as follows:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND – YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run “systemd-resolve --status” to see details about the actual nameservers.
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 127.0.0.53
/etc/resolv.conf (END)

I tried to restart both daemon and docker but received exactly the same error as before. It’s interesting to note that docker login command also returns the same error. Any additional clue?
Thank you very much and best regards.

Gustavo.

Hello again, folks…
After adding “proxy.example.com” to my /etc/hosts file I receive a different error, as below:

[ibmsys01@gustavo-ubuntu ~/zPDT]$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don’t have a Docker ID, head over to https://hub.docker.com to create one.
Username: gutavolozano
**Password: **
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Can you please help me with that?
Thank you and best regards.

Gustavo.