docker: Error response from daemon: driver failed programming external connectivity on endpoint tomcat01 (00028237b8dd7b21dbce757be3bf2df0e0fcfa6c3987cac68c42d2fb6603b42d):
(iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 49162 -j DNAT --to-destination 172.17.0.2:8080 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).
When starting a docker container or doing docker configuration, setting a configuration such as restart for the firewall
will clear the relevant configuration of docker, resulting in the query firewall rules when the docker chain is not displayed
The specific reason is that you deleted the chain in iptables
There are many ways to remove the links
restart firewalld firewall can be cleared, firewalld is centos7 or more, iptables is centos6 or less will have, and the underlying firewalld is involved in the iptables, so when it comes to firewall firewalld commands or commands in the iptables Be careful to remove the chain that involves docker
The solution is to restart the Docker engine
systemctl restart docker
Query the chain of the docker againiptables -L
or use this command to queryiptables -t nat - nL
Read More:
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- Docker Start Container Error: Error response from daemon: task already exists: unknown
- The docker export container cannot be run after being imported: error response from daemon: no command specified
- [Solved] Docker Filed to Start Container: Error response from daemon: network XXX not found
- [Solved] Virtual Machine Boot-up Error: failed to recover intents
- How to Solve Docker delete container image error: Error response from daemon: conflict: unable to delete 7cc1942f1ed5 (must be forced)
- [Solved] Linux virtual machine startup error: operating system not found
- Virtual machine failed to start network service error: ob for network.service failed because the control process exited with error code
- VScode Error: extension failed XHR Failed (Ubuntu Virtual Machine)
- [Solved] Win 10 VS Code Connect to the container of the server error: Cannot connect to the Docker daemon at … Is the docker daemon running
- [Solved] Virtual machine Failed to restart network Error: Error:Failed to start LSB: Bring up/down networking
- [Solved] ERROR: Linux route delete command failed: external program exited with error status: 2
- [Solved] Virtual Machine Error: FAILURE: Build failed with an exception.Flutter
- [docker][issue]Error response from daemon: mkdir xxx: file exists: unknown
- Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/
- [Solved] Virtual Machine Centos7 Startup Error: Entering emergency mode
- [Solved] Exception in replication between CentOS virtual machine and host
- Virtual machine ping Command Error: ping name or service not known
- [Solved] Error response from daemon: manifest for nvidia/cuda:latest not found: manifest unknown: manifest
- [Solved] VMware Create a Virtual Machine Error: unsuccessful