Error runing Docker on Duo256

Hi, I have been experimenting with Duo256 and would cool if it is possible to run containers on this board. Has anyone had any luck with this?

I believe a few kernel modules required to support the bridge driver are missing. I am new to buildroot too, so couldnt figure out how to add these.

When I start docker daemon, this is the error I see before it fails -

WARN[1970-01-02T20:22:41.943251752+07:00] Running modprobe bridge br_netfilter failed with message: modprobe: module bridge not found in modules.dep
modprobe: module br_netfilter not found in modules.dep
, error: exit status 1 
INFO[1970-01-02T20:22:41.996964409+07:00] unable to detect if iptables supports xlock: 'iptables --wait -L -n': `iptables: Failed to initialize nft: Protocol not supported`  error="exit status 1"
INFO[1970-01-02T20:22:42.580813668+07:00] stopping event stream following graceful shutdown  error="<nil>" module=libcontainerd namespace=moby
INFO[1970-01-02T20:22:42.593200200+07:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=plugins.moby
INFO[1970-01-02T20:22:42.593587074+07:00] stopping healthcheck following graceful shutdown  module=libcontainerd
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to register "bridge" driver: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables: Failed to initialize nft: Protocol not supported
 (exit status 1)

did you make this possible anyhow?

Like you said, It looks like the version of linux you are running either was not compiled with the bridge or netfilter compatibility, or you are missing the modules to dynamically load them.

You can try adding the CONFIG_BRIDGE=y and CONFIG_NETFILTER=y lines to build/boards/cv181x/sg2002_milkv_duo256m_glibc_arm64_sd/linux/cvitek_sg2002_milkv_duo256m_glibc_arm64_sd_defconfig (or whatever your board is) which will add the drivers statically instead as a module. Although if these are missing you will probably need to add more config options, you should be able to repeat with whatever other modules are missing after you try running it.

Good luck!