You are not logged in.
I've installed docker and started the service/daemon for it. But when I try to pull from the registry, it cannot seem to resolve the host:
sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
e6590344b1a5: Retrying in 1 second
docker: error pulling image configuration: download failed after attempts=6: dial tcp: lookup production.cloudflare.docker.com: no such host.
I found some topics about modifying the nameserver to 8.8.8.8 or having to use a proxy if you are on vpn or behind a proxy (but I am not using either of those things). The nameserver modification doesn't seem to work.
Anyone else have this problem?
Docker info output:
Client:
Version: 27.3.1
Context: default
Debug Mode: false
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 27.3.1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: true
Native Overlay Diff: false
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: c507a0257ea6462fbd6f5ba4f5c74facb04021f4.m
runc version:
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.12.10-arch1-1
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 6.702GiB
Name: <redacted>
ID: <redacted>
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Offline
Does DNS resolution work?
drill production.cloudflare.docker.com
ping -4 production.cloudflare.docker.com
ping -6 production.cloudflare.docker.com
Offline
Ah, maybe this is a little weird. Drill seems to work fine, but my ping can't seem to resolve hostnames. It's not supposed to be like this, is it?
drill output:
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 61063
;; flags: qr rd ra ; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; production.cloudflare.docker.com. IN A
;; ANSWER SECTION:
production.cloudflare.docker.com. 300 IN A 104.16.97.215
production.cloudflare.docker.com. 300 IN A 104.16.100.215
production.cloudflare.docker.com. 300 IN A 104.16.101.215
production.cloudflare.docker.com. 300 IN A 104.16.98.215
production.cloudflare.docker.com. 300 IN A 104.16.99.215
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
;; Query time: 107 msec
;; SERVER: 75.75.76.76
;; WHEN: Wed Jan 29 23:43:31 2025
;; MSG SIZE rcvd: 130
ping -4 production.cloudflare.docker.com:
ping: production.cloudflare.docker.com: Name or service not known
ping -6 production.cloudflare.docker.com:
ping: production.cloudflare.docker.com: Name or service not known
======================
Maybe there's something I messed up in my network config.
Here's /etc/resolv.conf:
# Generated by dhcpcd from enp1s0f0.dhcp, enp1s0f0.ra
# /etc/resolv.conf.head can replace this line
domain hsd1.ca.comcast.net
nameserver 75.75.75.75
nameserver 75.75.76.76
nameserver 2001:558:feed::1
nameserver 2001:558:feed::2
# /etc/resolv.conf.tail can replace this line
And /etc/hosts:
# Static table lookup for hostnames.
# See hosts(5) for details.
#
# <ip-address> <hostname.domain.org> <hostname>
127.0.0.1 <redacted> localhost
::1 <redacted> localhost
========================
edit: another fact is that I have avahi running on this computer, and systemd-resolved is not. I started systemd-resolved real quick, but ping still did not work.
Last edited by Cory Parsnipson (Today 07:59:09)
Offline
Ah, maybe this is a little weird. Drill seems to work fine, but my ping can't seem to resolve hostnames. It's not supposed to be like this, is it?
Nope.
Maybe there's something I messed up in my network config.
Yep.
Here's /etc/resolv.conf:
# Generated by dhcpcd from enp1s0f0.dhcp, enp1s0f0.ra # /etc/resolv.conf.head can replace this line domain hsd1.ca.comcast.net nameserver 75.75.75.75 nameserver 75.75.76.76 nameserver 2001:558:feed::1 nameserver 2001:558:feed::2 # /etc/resolv.conf.tail can replace this line
That means your Network configuration is managed by dhcpcd? Is this intended?
edit: another fact is that I have avahi running on this computer, and systemd-resolved is not. I started systemd-resolved real quick, but ping still did not work.
Please stop "messing around". At best nothing useful happens and the worst case is you damage your installation even further.
What does your "/etc/nsswitch.conf" look like?
Offline