티스토리 뷰

Error:

docker: error response from daemon: driver failed programming external connectivity on endpoint
...
iptables failed: ~~~ ! -i docker0: iptables: No chain/target/match by that name

Root cause:

Docker creates the docker chain when it started, but the iptables changed by another process, for example, firewalld.

Check iptable: iptables -L

Solution:

1. Restart docker and the correct iptables rules will be created.

2. Add docker chain into iptables manually.

iptables -t nat -N DOCKER
iptables -t nat -A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
iptables -t nat -A PREROUTING -m addrtype --dst-type LOCAL ! --dst 127.0.0.0/8 -j DOCKER
service iptables save
service iptables restart
iptables -L
service docker restart
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2025/11   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
글 보관함