八爪鱼7 BE96 AI板 安装 iStoreOS,作为双CPU双系统的第二个系统
第一步:用 Panel 创建 debug compose
在 DPanel / 其他面板里新建 compose,填:
services:
be96-debug:
image: linkease/be96-debug:latest
container_name: be96-debug
restart: unless-stopped
privileged: true
network_mode: host
pid: host
ipc: host
uts: host
cgroup: host
environment:
DEBUG_SSH_PORT: "2223"
DEBUG_AUTHORIZED_KEYS: "这里填你的 SSH 公钥内容"
volumes:
- /:/host:rw,rslave
- /var/run/docker.sock:/var/run/docker.sock:rw
启动后登录:
ssh -p 2223 debug@宿主机IP
第二步:在 debug 里确认宿主网络
进入 debug 后执行:
ip route
ip -4 addr
docker version
找出宿主真实 LAN 网卡,一般看默认路由:
ip route get 223.5.5.5
输出里类似:
dev eth0 src 192.168.50.195
这里的 eth0 就是 macvlan 的 parent 网卡。
确认局域网参数,比如:
网段:192.168.50.0/24
网关:192.168.50.1
parent:eth0
第三步:可选,先创建 macvlan 网络
如果你的 Panel 支持 compose 自动创建 network,可以跳过这步。
否则在 debug 里执行:
docker network create -d macvlan \
--subnet=192.168.50.0/24 \
--gateway=192.168.50.1 \
-o parent=eth0 \
istoreos-lan
注意把 eth0、192.168.50.0/24、192.168.50.1 改成你的实际环境。
第四步:用 Panel 创建 iStoreOS compose
如果前面已经手动创建了 istoreos-lan,compose 用这个:
services:
istoreos:
image: linkease/istore-in-be96:22.03
container_name: istoreos
restart: unless-stopped
privileged: true
command: /sbin/init
networks:
- istoreos-lan
networks:
istoreos-lan:
external: true
如果希望 compose 自动创建 macvlan,用这个:
services:
istoreos:
image: linkease/istore-in-be96:22.03
container_name: istoreos
restart: unless-stopped
privileged: true
command: /sbin/init
networks:
istoreos-lan: {}
networks:
istoreos-lan:
name: istoreos-lan
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: 192.168.50.0/24
gateway: 192.168.50.1
第五步:验证 iStoreOS IP
回到 debug SSH,执行:
docker exec istoreos ip -4 addr show eth0
docker exec istoreos ip route
docker exec istoreos ping -c 2 192.168.50.1
docker exec istoreos ping -c 2 223.5.5.5
看到类似:
inet 192.168.50.x/24
default via 192.168.50.1 dev eth0
然后访问:
http://192.168.50.x/cgi-bin/luci/
补充:macvlan 下,宿主机自己通常不能直接访问 iStoreOS 的 macvlan IP,但同局域网其他机器可以访问。需要宿主也访问时,再通过 debug 添加 host-side macvlan shim。
