-
Notifications
You must be signed in to change notification settings - Fork 12
Add docker config fragment #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
I manually built this and ran check-config again:
Which looks good (CONFIG_MEMCG_SWAP being obsolete). Unfortunately, docker doesn't run:
Indeed:
Which is due to netlink for netfilter being missing:
I believe this is provided by linux/net/netfilter/nfnetlink.c which is enabled by CONFIG_NETFILTER_NETLINK=m but that's typically not enabled directly, instead Debian kernels set:
I'm not sure which of these docker needs, perhaps only CONFIG_NETFILTER_NETLINK, perhaps CONFIG_NETFILTER_NETLINK_ACCT to have some stats on network traffic from containers. I've turn them all as modules in the docker config fragment, but now I get:
This is because iptables in Debian is built for nftables, so CONFIG_NF_TABLES is needed (it's =m in the Debian kernel). After this change, iptables -L works, but docker still fails to start with:
and indeed, this fails:
but I have yet to figure out what's missing in the kernel for this to work. |
Ran Moby's check-config script against a mainline + defconfig kernel and followed Debian's existing configs as much as possible. Will need to maintain and update from time to time. Signed-off-by: Loïc Minier <[email protected]>
Signed-off-by: Loïc Minier <[email protected]>
Signed-off-by: Loïc Minier <[email protected]>
b3ea50a
to
a36ec34
Compare
I checked configs from LmP starting with these: all were already set either as =m or =y except for CONFIG_DM_THIN_PROVISIONING which seems unrelated to these issues and CONFIG_CFQ_GROUP_IOSCHED which seems to be an obsolete config (dropped in 4.20). I'll check https://github.com/foundriesio/lmp-kernel-cache/blob/c6f25306a02f3bfd7a4c140f0f347402f6a72ee6/features/netfilter/netfilter.cfg next. |
and these were the missing configs:
I'll add a netfilter config fragment based on the Yocto one; I haven't figured proper copyright/licensing attribution for it yet though. |
Even after these additions, I still get:
|
Based on LmP's. Signed-off-by: Loïc Minier <[email protected]>
Signed-off-by: Loïc Minier <[email protected]>
Signed-off-by: Loïc Minier <[email protected]>
Add and use docker config fragment
Fixes #43