解决docker 容器内访问宿主机“No route to host”的问题

 

请顺序运行以下命令:

1 nmcli connection modify docker0 connection.zone trusted
2 
3 systemctl stop NetworkManager.service
4 firewall-cmd --permanent --zone=trusted --change-interface=docker0
5 systemctl start NetworkManager.service
6 nmcli connection modify docker0 connection.zone trusted
7 systemctl restart docker.service

 

原文:https://blog.csdn.net/iouczp/article/details/80300500

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案