1镜像下载
地址:
https://archive.openwrt.org/releases/23.05.1/targets/x86/64/
#linux 下下载命令为
wget https://archive.openwrt.org/releases/23.05.1/targets/x86/64/openwrt-23.05.1-x86-64-rootfs.tar.gz ./#加载镜像
docker import openwrt-23.05.1-x86-64-rootfs.tar.gz openwrt-23.05.1-x86-64-rootfs
2启动容器
docker run -itd --ipc=host --net=host --name openwrt --privileged=true openwrt-23.05.1-x86-64-rootfs:latest /sbin/initdocker exec -it openwrt ash
3改配置
#将opkg的下载地址换成国内地址
sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
#更新源
opkg update#重新设置密码
passwd