Rancher 添加主机失败的解决方法

 

执行了添加主机的命令,并没有看到主机

通过 docker logs <容器ID> 查看日志

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

需要修改 /etc/resolv.conf  把里面ip改成自己的ip 。修改后,再复制粘贴运行一次,刷新页面即可显示出主机来了。

posted @ 2019-06-10 14:30  图生  阅读(3121)  评论(0编辑  收藏  举报