本帖最后由 缔梦https:www.d 于 2023-3-16 15:53 编辑
- 刷完openwrt 经常出现保存不了配置 或者docker不正常的可以这样搞
- 1.修改软件源
- src/gz reboot_base http://mirrors.cloud.tencent.com/lede/releases/21.02.3/packages/aarch64_cortex-a53/base
- src/gz reboot_luci http://mirrors.cloud.tencent.com/lede/releases/21.02.3/packages/aarch64_cortex-a53/luci
- src/gz reboot_packages http://mirrors.cloud.tencent.com/lede/releases/21.02.3/packages/aarch64_cortex-a53/packages
- src/gz reboot_routing http://mirrors.cloud.tencent.com/lede/releases/21.02.3/packages/aarch64_cortex-a53/routing
- src/gz reboot_telephony http://mirrors.cloud.tencent.com/lede/releases/21.02.3/packages/aarch64_cortex-a53/telephony
- src/gz openwrt_kiddin9 https://op.supes.top/packages/aarch64_cortex-a53
- src/gz openwrt_base https://mirrors.cloud.tencent.com/openwrt/releases/21.02.3/packages/aarch64_cortex-a53/base
- src/gz openwrt_luci https://mirrors.cloud.tencent.com/openwrt/releases/21.02.3/packages/aarch64_cortex-a53/luci
- src/gz openwrt_packages https://mirrors.cloud.tencent.com/openwrt/releases/21.02.3/packages/aarch64_cortex-a53/packages
- src/gz openwrt_routing https://mirrors.cloud.tencent.com/openwrt/releases/21.02.3/packages/aarch64_cortex-a53/routing
- src/gz openwrt_base https://mirrors.vsean.net/openwrt/releases/21.02.3/packages/aarch64_cortex-a53/base
- src/gz openwrt_luci https://mirrors.vsean.net/openwrt/releases/21.02.3/packages/aarch64_cortex-a53/luci
- src/gz openwrt_packages https://mirrors.vsean.net/openwrt/releases/21.02.3/packages/aarch64_cortex-a53/packages
- src/gz openwrt_routing https://mirrors.vsean.net/openwrt/releases/21.02.3/packages/aarch64_cortex-a53/routing
- 2.创建docker修复脚本 /opt/dci/ins-d.sh 记得给脚本执行权限 chmod +x /opt/dci/ins-d.sh
- cd /opt/dci
- opkg update
- opkg remove *docker
- opkg remove docker*
- opkg update
- cd /opt/dci
- opkg install docker dockerd docker-compose luci-app-docker luci-app-dockerman luci-i18n-docker-zh-cn luci-i18n-dockerman-zh-cn luci-lib-docker
- cd /opt/dci
- opkg install luci-app-docker.ipk
- 3.下载app-docker文件和/opt/dci/ins-d.sh 放在一起 文件名改为 luci-app-docker.ipk
- https://mirrors.vsean.net/openwrt/releases/21.02.3/packages/aarch64_cortex-a53/luci/luci-app-docker_1_all.ipk
- 4.添加到开机启动
- 打开web界面 系统-》启动项-》本地启动脚本 修改后内容和下面一样
- sleep 25 && /etc/init.d/network restart
- #docker修复
- e2fsck -y /dev/mmcblk0p14
- sleep 10 && sh /opt/dci/ins-d.sh
- 5.如果上面第四步无法保存 ssh执行 e2fsck -y /dev/mmcblk0p14 然后重启就行了 接着开始修改就能保存了
- 这样做是因为随身wifi经常只读 而且 docker时常不好使 所以没办法了 管它开机好不好使先吃药再说
复制代码
|