docker 创建和启动容器报错 iptables: No chain/target/match by that name. (exit status 1))
docker: Error response from daemon: driver failed programming external connectivity on endpoint mysql (5180c7e6fe91bdb57d0dd4b47b8c7e1f193dafa80aa3563c004e23c724dc4fca): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 3306 -j DNAT --to-destination 172.17.0.2:3306 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1))
我的是云服务器,需要在创建或启动容器前开放相应端口和安全组,并且重启docker
systemctl restart docker(centos)
原文地址:https://blog.csdn.net/m0_73665762/article/details/144094172
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!