This topic created in 1188 days ago, the information mentioned may be changed or developed.
- 我之前安装了不带 docker 版本的 Openwrt (编译自https://github.com/DHDAXCW/OpenWRT_x86_x64)。
-
我现在想要安装 docker 进来,发现使用
opkg update && opkg install dockerd 会报错内核不匹配: $ opkg info kernel
Package: kernel
Version: 6.1.8-1-c2eafb8d50736566bfff7ce0838adc2a
Depends: libc
Status: install user installed
Architecture: x86_64
Installed-Time: 1674992147
$ opkg install dockerd
...
$ opkg install dockerd
Collected errors:
* pkg_hash_check_unresolved: cannot find dependency kmod-ipt-physdev for dockerd
* pkg_hash_check_unresolved: cannot find dependency kmod-nf-ipvs for dockerd
* pkg_hash_check_unresolved: cannot find dependency kmod-veth for dockerd
* pkg_hash_check_unresolved: cannot find dependency libnetwork for dockerd
* pkg_hash_check_unresolved: cannot find dependency tini for dockerd
* pkg_hash_check_unresolved: cannot find dependency uci-firewall for dockerd
* pkg_hash_fetch_best_installation_candidate: Packages for dockerd found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package dockerd.
- 经过了解,我知道了自编译进去的固件内核版本号带一个 hash ,因此直接使用官方的固件源是无法安装的。
- 想问问大家是否可以在不重新安装的前提条件下,安装一个 docker 进来呢?
7 replies • 2023-05-07 18:47:38 +08:00
 |
|
1
300 Feb 19, 2023
直接重新编译升级安装不就添加了吗,配置保留
|
 |
|
2
Illusionary Feb 19, 2023
如果你原来编译的机器还在,可以把 docker 编译成 ipk 包单独上传安装,记得别更新代码,否则内核版本又对不上了
|
 |
|
4
paw0323 Mar 13, 2023
把内核版本修改成跟官方库一样的就可以直接装了
|
 |
|
7
yaott2020 May 7, 2023 via Android
自编译貌似不能完全用官方库,因为某些 kmod 依赖内核版本,所以建议直接用官方的包。
|