Error response from daemon: Get https://index.docker.io/v1/search?q=mysql&n=25: dial tcp: lookup ind

使用docker报错 :Error response from daemon: Get https://index.docker.io/v1/search?q=mysql&n=25: dial tcp: lookup index.docker.io: no such host

dig @114.114.114.114 index.docker.io

 

 

us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. 60 IN A 54.236.224.26
us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. 60 IN A 50.16.172.3
us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. 60 IN A 54.81.26.184
us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. 60 IN A 34.193.164.221
us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. 60 IN A 3.220.75.233
us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. 60 IN A 52.3.104.67

 

 

随便选择一个ip

vim /etc/hosts

54.236.224.26 index.docker.io

就可以了。

 

 

你可能感兴趣的:(docker容器)