Skip to content
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

Add NAT kernel config required by docker #64

Merged
merged 5 commits into from
Mar 11, 2024
Merged

Conversation

matinlotfali
Copy link
Contributor

I received docker errors below on the new BSP:

INFO[2024-03-04T21:00:14.262170118Z] Loading containers: start.                   
WARN[2024-03-04T21:00:14.269329867Z] Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module bridge not found in directory /lib/modules/5.10.175-cip29-yocto-standard
modprobe: WARNING: Module br_netfilter not found in directory /lib/modules/5.10.175-cip29-yocto-standard
, error: exit status 1 
WARN[2024-03-04T21:00:14.278471933Z] Running iptables --wait -t nat -L -n failed with message: `modprobe: FATAL: Module ip_tables not found in directory /lib/modules/5.10.175-cip29-yocto-standard
iptables v1.8.4 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.`, error: exit status 3

So I added NAT kernel configs

Copy link
Contributor

@mistyron mistyron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I like this addition!

@matinlotfali
Copy link
Contributor Author

@mistyron I enabled more configs since the time you approved it. These extra configs were later discovered when iotedge was not working properly and I discovered this script:
https://blog.hypriot.com/post/verify-kernel-container-compatibility/

@matinlotfali matinlotfali merged commit ebb2a4f into develop Mar 11, 2024
1 check passed
@matinlotfali matinlotfali deleted the nat-kconfig branch March 11, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants