Docker: add more required kernel modules as RRECOMMENDS:${PN}

With a very minimal image recipe that just pulls in docker, the daemon
won't start due to missing modules, so add the missing ones.

The list of new modules was created by diffing the output of `lsmod`
before installing all kernel-modules and the output  after launching
docker with all modules installed.

Signed-off-by: Koen Kooi <koen.kooi@oss.qualcomm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Koen Kooi 2025-07-02 09:03:27 +02:00 committed by Bruce Ashfield
parent 135bf45c74
commit f707bbe323

View File

@ -14,7 +14,18 @@ RDEPENDS:${PN} = "util-linux util-linux-unshare iptables \
"
RDEPENDS:${PN} += "virtual-containerd ${VIRTUAL-RUNTIME_container_runtime}"
RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade"
RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool \
kernel-module-nf-conntrack \
kernel-module-nf-conntrack-netlink \
kernel-module-nf-nat \
kernel-module-nfnetlink \
kernel-module-overlay \
kernel-module-veth \
kernel-module-x-tables \
kernel-module-xt-addrtype \
kernel-module-xt-conntrack \
kernel-module-xt-masquerade \
"
PROVIDES += "virtual/docker"