docker iptables: No chain/target/match by that name.

[root@vultr apache]# docker run -dit --name my-apache-app -p 80:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4
0f4647106f3bdf2ecb3d843322613924fcd88a533c2180f8dbdfdeac10df143d
docker: Error response from daemon: driver failed programming external connectivity on endpoint my-apache-app (f0506c0821fda176224e821d4d5c109babe5fd9302b3948956af7dcfd8a2944a): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).

解决方法 重启docker

发表评论

电子邮件地址不会被公开。 必填项已用*标注