使用Rockey操作系统运行rancher镜像报错iptables is not available on this host解决方法

参考
https://blog.csdn.net/u011197085/article/details/138143476

  1. 环境查看
# cat /etc/redhat-release 
Rocky Linux release 9.3 (Blue Onyx)
# uname -a
Linux Rocky9K8SMaster003021 5.14.0-362.18.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Feb 11 13:49:23 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  1. 故障现象
    运行Rancher镜像时docker不停重启
    查看docker日志有以下报错信息
# k3s exited with: exit status 1
# iptables is not available on this host
  1. 原因分析
    没有加载iptables内核模块
  2. 解决方法
    手动加载模块
# sudo modprobe iptable_nat 
# sudo modprobe iptable_filter

设置到配置文件

# cat /etc/modules-load.d/modules.conf 
iptable_nat
iptable_filter

重启

# reboot

如果以上步骤未解决问题则删除docker启动的进程和数据卷再启动一次rancher

# docker stop xxx
# docker rm xxx
# docker volume prune -a
posted @   minseo  阅读(103)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
点击右上角即可分享
微信分享提示