1804
.0 a79a6b528ba18673a5cc65a625ee4c502f0e9b4ac84e339d6a6a83294c5ed21
Docker: the Error response from the daemon: driver failed programming external connectivity on the endpoint my_tomcat b497064f88c57c20cf19fd55d593fe2985758b93f3facafa8a476c2ff0f61a0 (8) : (iptables failed: iptables - wait - t NAT - A docker -p TCP - 0/0 - d dport 8099 - j DNAT - to - destination 172.17.0.3:8080! -i docker0: iptables: No chain/target/match by that name.
(the exit status 1)).
Centos image has been started, now I just want to expose centos port to the host machine, perform error appears after the command, centos image IP is 172.17.0.2 172.17.0.3 the IP from where come of,
Perform docker ps - a command and found a new state of the CONTAINER is Created,
CodePudding user response:
Sorry, there was a problem with your orders well, generally create a container, need to add - the run command,docker run - it - p, 8080:8080 tomcat
https://blog.csdn.net/heian_99/article/details/103824234
My blog, you can reference,
CodePudding user response:
Write wrong, should be - it, mistakes, don't mindCodePudding user response:
hello, I'd like to be a firewall problem, if the experimental environment, can remove the first container, close the iptables, firewalld and Selinux, restart the docker service and try againCodePudding user response:
Error message is prompted, docker default will join docker chain in the table, the rules of NAT docker run started, can't find the chain, is an error, if it is centos7, you can use the systemctl start firewalld start firewall, and then through the iptables -t NAT - nL docker did look at the data, if there are data, try to start the container,