好讨厌安装docker服务~,经常各种问题,今天又出现无法访问docker映射的80端口,研究一下找到解决方法
1、关闭firewalld systemctl stop firewalld && systemctl mask firewalld && systemctl disable firewalld 2、放行端口 iptables -A INPUT -p tcp --dport 80 -j ACCEPT 3、修改内核参数 vim /etc/sysctl.conf net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 4、安装iptables yum install iptables-services service iptables save systemctl enable iptables 5、更新系统 yum update 6、最后重启 reboot