当前位置: 代码迷 >> 综合 >> docker访问宿主机“No route to host”的问题
  详细解决方案

docker访问宿主机“No route to host”的问题

热度:80   发布时间:2023-12-17 08:48:03.0

按顺序执行以下命令:


nmcli connection modify docker0 connection.zone trusted
systemctl stop NetworkManager.service
firewall-cmd --permanent --zone=trusted --change-interface=docker0
systemctl start NetworkManager.service
nmcli connection modify docker0 connection.zone trusted
systemctl restart docker.service

 

  相关解决方案