野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1329|回复: 0

[经验\资料] RK3588-安装启动docker.io时报错iptables:Could not fetch rule set gene...

[复制链接]
发表于 2025-4-21 15:30:02 | 显示全部楼层 |阅读模式



RT。安装并启动docker时,报错如下面,

INFO[2025-04-21T14:25:45.139385250+08:00] stopping event stream following graceful shutdown  error="<nil>" module=libcontainerd namespace=moby

failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument




网络上也是乱七八糟一堆解决方法,最后终于试到一个可用的。


执行update-alternatives --config iptables将iptables-nft 切换为 iptables-legacy。之后重启成功。


root@lubancat:~# update-alternatives --config iptables
There are 2 choices for the alternative iptables (providing /usr/sbin/iptables).

  Selection    Path                       Priority   Status
------------------------------------------------------------
* 0            /usr/sbin/iptables-nft      20        auto mode
  1            /usr/sbin/iptables-legacy   10        manual mode
  2            /usr/sbin/iptables-nft      20        manual mode

Press <enter> to keep the current choice[*], or type selection number: 1






回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2025-12-6 01:59 , Processed in 0.120984 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表