Error response from daemon: Get https://registry-1

2020-06-07 05:06发布

I am new to dockers. When I am running the docker pull sonarqube I am getting the following error.

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

Can you please let me know why I am getting the error and how can I rectify this.

12条回答
▲ chillily
2楼-- · 2020-06-07 05:42

I was getting the same error. Tried a few things like restarting the server, checking configuration etc... Finally, it got resolved by adding proxies (since I was using it inside my organization network)

查看更多
ら.Afraid
3楼-- · 2020-06-07 05:47

In my case on a Mac, only a restart of the docker-machine did the work:

docker-machine restart

Uninstalling docker did not work! Just the above restart is enough!

查看更多
Ridiculous、
4楼-- · 2020-06-07 05:50

I just restarted and it works fine again!

查看更多
成全新的幸福
5楼-- · 2020-06-07 05:51

make sure that your server is not located in the following areas:

Docker is a US company, we must comply with US export control regulations. In an 
effort to comply with these, we now block all IP addresses that are located in Cuba, 
Iran, North Korea, Republic of Crimea, Sudan, and Syria.
查看更多
SAY GOODBYE
6楼-- · 2020-06-07 05:55

Things that might work: 1. Check your proxy settings 2. Restart docker 3. Go to your docker settings and check if you're signed in to docker hub, if you aren't, sign in and try again (This worked for me)

查看更多
Ridiculous、
7楼-- · 2020-06-07 05:59

Had same issue, I restarted docker and it worked

查看更多
登录 后发表回答