docker启动容器报错:Error response from daemon: driver failed programming external connectivity on endpoint

安装的docker启动报错如下:

Error response from daemon: driver failed programming external connectivity on endpoint nacos (2b0f4edff8f640559af9626936d1b38d965302ef525af483716e8e8c9121583e):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8848 -j DNAT --to-destination 172.17.0.2:8848 ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1))

翻译一下意思就是:驱动程序无法在终结点nacos上编程外部连接

换一个mysql再试试

Error response from daemon: driver failed programming external connectivity on endpoint mysql (996617f3569d808a89e8285a1560f367386a38e0fc045929230788192e352aa7):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 3306 -j DNAT --to-destination 172.23.0.2:3306 ! -i br-e9b21b5b8b70: iptables: No chain/target/match by that name.
 (exit status 1))

还是一个样,推测一波大概意思也明白了,应该是端口映射或者网络出现了问题。本人猜测端口问题比较大,二话不说先重启一下docker

systemctl restart docker

再启动容易,诶!它好了!

posted on   zyp_java_net  阅读(999)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示