docker: Error response from daemon: driver failed programming external connectivity on endpoint php

Docker container port mapping error or host firewall changes may cause:
docker: Error response from daemon: driver failed programming external connectivity on endpoint lamp3 (46b7917c940f7358948e55ec2df69a4dec2c6c7071b002bd374e8dbf0d40022c): (iptables failed: iptables --wait -t nat -A DOCKER tcp -d 0/0 --dport 86 -j DNAT --to-destination 172.17.0.2:80! -i docker0: iptables: No chain/target/match by that name.
Solution
The customization defined when the docker service starts The chain is cleared, just restart docker:

systemctl restart docker

Guess you like

Origin blog.csdn.net/JineD/article/details/111316176