Github: https://github.com/SuLingGG/OpenWrt-Docker-Mini
DockerHub: https://hub.docker.com/r/sulinggg/openwrt-mini
-
本项目是 OpenWrt-Rpi-Docker 与 OpenWrt-Mini 的姊妹项目。
-
本项目基于 immortalwrt/immortalwrt openwrt-18.06-k5.4 分支,LuCI 版本为 LuCI 18.06。
-
本项目提供纯净版的 Docker OpenWrt 镜像,并预配置自建软件源,使用者可以在 OpenWrt 中通过 opkg 命令安装需要的软件包。
对于国内用户,为提高镜像拉取体验,可以考虑拉取存放于阿里云镜像仓库的镜像,镜像名称及标签如下表所示:
支持设备/平台 | DockerHub | 阿里云镜像仓库 (上海) |
---|---|---|
树莓派 2B | sulinggg/openwrt-mini:rpi2 | registry.cn-shanghai.aliyuncs.com/suling/openwrt-mini:rpi2 |
树莓派 3B / 3B+ | sulinggg/openwrt-mini:rpi3 | registry.cn-shanghai.aliyuncs.com/suling/openwrt-mini:rpi3 |
树莓派 4B | sulinggg/openwrt-mini:rpi4 | registry.cn-shanghai.aliyuncs.com/suling/openwrt-mini:rpi4 |
arm | sulinggg/openwrt-mini:arm | registry.cn-shanghai.aliyuncs.com/suling/openwrt-mini:arm |
arm64 | sulinggg/openwrt-mini:arm64 | registry.cn-shanghai.aliyuncs.com/suling/openwrt-mini:arm64 |
x86_64 | sulinggg/openwrt-mini:x86_64 | registry.cn-shanghai.aliyuncs.com/suling/openwrt-mini:x86_64 |
-
本项目使用文档同 OpenWrt-Mini 项目的使用文档,在此不再赘述。
-
Docker 镜像中软件包的集成情况与 SuLingGG/OpenWrt-Mini 项目中相同。
-
树莓派 2B 镜像同时适用于 2B/3B/3B+/4B 。
-
若拉取镜像时不加任何标签,则将使用 latest 标签拉取镜像,
latest
指向的镜像与树莓派 2B 镜像实际上为同一镜像。 -
如果你拥有 arm 或 arm64 架构 CPU 的设备,可以直接拉取标签为
arm
或arm64
的镜像使用。 -
由于 Docker 容器与宿主机共享内核,所以 Docker 容器的内核特性与宿主机当前的内核特性相同。
-
某些软件包可能依赖一些特定的内核特性,所以我不保证 opkg 软件源中的所有软件包都可以正常使用。且因为上文所述原因,在 OpenWrt 中安装 kmod 是无效的,请在宿主机中提前载入相应的内核模块,例如:
modprobe ip6_udp_tunnel
modprobe ip6table_nat
modprobe pppoe
modprobe tun
modprobe udp_tunnel
modprobe xt_TPROXY
镜像详细使用方法请参考博客文章:
「在 Docker 中运行 OpenWrt 旁路网关」
P3TERX/Actions-OpenWrt (本项目基于此项目):
https://github.com/P3TERX/Actions-OpenWrt
OpenWrt Source Repository:
https://github.com/openwrt/openwrt/
Lean's OpenWrt source:
https://github.com/coolsnowwolf/lede
CTCGFW's Team: