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

通过 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 。修改后,再复制粘贴运行一次,刷新页面即可显示出主机来了。

相关文章:

  • 2021-06-20
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
猜你喜欢
  • 2018-06-11
  • 2019-03-11
  • 2021-08-10
  • 2022-12-23
  • 2022-01-02
  • 2021-08-28
  • 2021-06-30
相关资源
相似解决方案