📅  最后修改于: 2022-03-11 14:50:44.297000             🧑  作者: Mango
Note: Your iptables file location might be different. Run cat /etc/iptables.up.rules or cat /etc/network/iptables.rules
1. edit your /etc/iptables.up.rules file, back up file then remove everything with docker in it
2. flush iptables: iptables -P INPUT ACCEPT && iptables -P OUTPUT ACCEPT && iptables -P FORWARD ACCEPT && iptables -F
3. reload iptables rules: iptables-restore < /etc/iptables.up.rules
4. verify/check your rules: iptables -L -n (should no longer have any docker chains or rules)