[Bug] Docker Connection Error

This is an error report.


Screenshot of the error


Error details

Hello, I am encountering an issue when trying to run the basic hello-world Docker image. I followed all the provided course installation and setup steps but still ran into the following problems:

Stage 1: Initial Error (Daemon Connection)
Initially, the Docker daemon service was not running, resulting in a connection error.

Command & Output:
user:~$ sudo docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I successfully fixed this by manually starting the Docker service using sudo service docker start (as systemctl is not available in this environment).

Stage 2: Current Error (DNS Failure)
After starting the daemon, the Docker client successfully connects, but the daemon now fails to resolve the DNS for the official registry when trying to pull the image.

Command & Output:
user:~$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 127.0.0.11:53: read udp 127.0.0.1:47460->127.0.0.11:53: read: connection refused

I would appreciate any assistance in solving this error as quickly as possible.
Thank you.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.