Loading

ERROR: DNS Checking loopback IP address 127.0.0.0/8, localhost or ::1 configured as the DNS server o

触发时机:

依据提示,复制第5部执行,创建完主机后,并未显示

 

报错信息:

ERROR: DNS Checking loopback IP address 127.0.0.0/8, localhost or ::1 configured as the DNS server on the host file /etc/resolv.conf, can't accept it

也可根据docker logs -f {主机CONTAINER ID}查看错误信息

 

解决办法:

1. $ sudo nano /etc/docker/daemon.json

2. 添加下面字符

{
"dns": ["8.8.8.8", "8.8.4.4", "your ip"]
}

ctrl + X    -〉    Y     回车保存

如不确认是否保存,按照第1部查看。

4. $ sudo service docker restart

 
posted @ 2021-02-03 11:27  Ellisonzhang  阅读(736)  评论(0编辑  收藏  举报