欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

no route to host (docker 容器访问宿主机)

程序员文章站 2024-03-13 23:43:58
...

no route to host (docker 容器访问宿主机时出现,centos7)

问题排查:

# 以下命令, 防火墙是 not running 状态
firewall-cmd --state
# 以下命令 , iptables是 Active: active (exited) 
service iptables status
# 关闭 iptables 
service iptables stop

注意排查 iptables