I was getting started with dockers, following the documentation and stumbled onto this Error:
$ docker run hello-world with the response:
Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp 22.214.171.124:443: connect: no route to host. See 'docker run --help'.
I have tried rebooting the server and restarting daemon and docker service with
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
but it had no effect on the Error.
Spinning up different containers gave me the same Error and prompting
$ curl https://registry-1.docker.io/v2/ just threw the same kind of error
(7) Failed to connect: no route to host.
I have tried adding more nameservers to
/etc/resolv.conf with the response:
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). See 'docker run --help'.
Why am I getting this Error? Can you please tell me how I can resolve this issue?