티스토리 뷰
Platform & Service/Docker
Fails on iptables(No chain/target/match by that name)
Jared 2019. 6. 28. 10:33Error:
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
링크
TAG
- SMPP
- Jose
- spring boot
- Tomcat
- monitoring
- svn
- bouncycastle
- Java
- JSF
- dump
- bash
- ubuntu
- SBM
- docker
- Guava
- Dependency
- log4j
- nodejs
- Kubernetes
- Shell
- Heap
- OOP
- spring
- Oracle
- install
- Maven
- EMV
- jboss
- ssh
- zookeeper
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함