树莓派5openwrt
1.1K
本镜像基于 ImmortalWrt 23.05分支,每日1点通过GitHub Actions自动构建推送至本仓库。
sudo ip link set eth0 promisc on
自行修改网段、网关
sudo docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=eth0 openwrtNet
建议使用docker compose: 示例:
services:
openwrt:
image: xugd/openwrt-pi5:latest
container_name: openwrt
restart: always
network_mode: openwrtNet
privileged: true
command: /sbin/init
volumes:
- openwrt:/etc
volumes:
openwrt:
docker exec -it openwrt /bin/sh
vi /etc/config/network
示例:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.1.105'
option gateway '192.168.1.103'
option dns '192.168.1.103'
option device 'br-lan'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
255.255.255.0重启网络:
/etc/init.d/network restart
访问你分配的容器IP,例如http://192.168.1.105,进入openwrt主页面
本镜像基于 GitHub Actions 自动构建,您可以在 GitHub 仓库中找到源代码并查看构建过程。
欢迎任何形式的贡献!如果您发现问题或有改进建议,请通过以下方式联系我:
本项目使用 GPL License 授权,详情请参阅 LICENSE。
Content type
Image
Digest
sha256:0fb1d7498…
Size
85.2 MB
Last updated
over 1 year ago
docker pull xugd/openwrt-pi5