>PROBLEM
Attempt to start a docker container, returns:
Error response from daemon: driver failed programming external connectivity on endpoint YOUR_CONTAINER_NAME
(a8dc1e2b183712da69829c9efd642bf2bdcb504556a8dbd3324902adcb79fc3b): (
iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport SOME_PORT_HERE -j DNAT --to-destination 172.17.0.2:8048 ! -i docker0
: iptables: No chain/target/match by that name.
(exit status 1))
Error: failed to start containers: YOUR_CONTAINER_NAME
>SOLUTION
This kind of issue has more than one cause.
It will be described two of them, very common causes.
1. iptables config
Set the following iptables rule before the others, at the beginning:
iptables -t nat -A POSTROUTING -o docker0 -j MASQUERADE
2. Restart docker
If you already has set procedure below and if it happens again, try to do:
systemctl restart docker
>ENV
docker/debian based distributions
[MYREF]:
y;faq-docker: Error response from daemon: driver failed programming external connectivity on endpoint<memo<docker;.
No comments:
Post a Comment