Docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io

Problem:
docker: Error response from daemon:

Description:
I have setup a Centos VM in Oracle VM VirtualBox for installing docker community edition for testing.

I have problems on executing “docker run hello-world” with following messages. Please advise.

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

This sounds like your daemon is unable to reach the Docker Hub. Please check out the following article to see if anything there helps out: https://success.docker.com/article/i-cant-reach-docker-hub-from-my-home-network

1 Like

I have no problems connecting to internet through proxy by wget.

But, I have problems by docker.

May I know any configurations are required in docker for doing it?

Hi!
I have the same trouble when using vscode and connect my vm in the server with vs code
I used an extension of docker engine
OS: Centos7
any suggestions , please !
thank you