Docker and WiFi radio issues on OpenWrt 21.02

Docker and WiFi radio issues on OpenWrt 21.02

Hello, I'm trying to get Docker working on OpenWrt 21.02 but I'm having issues. My issues are mainly on the start of 'dockerd' as well as my wifi radio not starting when I compile with docker. My setup is based on a Raspberry Pi 4b running OpenWrt. Any help with these issues would be greatly appreciated! I'm happy to provide any more information if needed.

Current configuration

This is my current configuration:

TARGET_bcm27xx=choice
TARGET_bcm27xx_bcm2711=choice
TARGET_bcm27xx_bcm2711_DEVICE_rpi-4=choice
CONFIG_TARGET_ROOTFS_PARTSIZE=14000
CONFIG_GOLANG_EXTERNAL_BOOTSTRAP_ROOT=/lib/go-1.13
PACKAGE_luci=y
PACKAGE_make=y
PACKAGE_curl=y
PACKAGE_fdisk=y
PACKAGE_block-mount=y
PACKAGE_docker=
PACKAGE_docker-compose=y
PACKAGE_dockerd=y
PACKAGE_vxlan=y
PACKAGE_kmod-vxlan=y
PACKAGE_ipvsadm=y
PACKAGE_kmod-nf-ipvs=y

Dockerd Issues

While setting up Docker on my OpenWrt system, I encountered several errors logged by dockerd. Here are the key issues:

  • Bridge Device docker0 Already Defined: Notices indicating that the bridge device 'docker0' was already defined in the network configuration, suggesting potential conflicts or redundancies in the setup.
  • Traffic Dropping Between eth0 and docker0: Notices about dropping traffic from eth0 to docker0, which could indicate issues with network bridging or firewall settings.
  • Connection Errors with containerd.sock: Frequently, dockerd reported failure to connect to unix:///var/run/docker/containerd/containerd.sock, indicating possible issues with Docker's container runtime.
  • Deprecated containerd Configuration: A warning about the deprecation of containerd config version 1 suggested a need to update to a newer version.
  • Device Mapper Not Configured: Repeated warnings about the failure to load io.containerd.snapshotter.v1.devmapper plugin due to it not being configured.
  • Memory Controller and IPSEC Module Warnings: I observed warnings about the inability to find a memory controller and to load modules for IPSEC rules.
  • Errors Reading Kernel Parameters: Multiple errors were logged regarding the inability to read various net.ipv4.vs kernel parameters.

WiFi Not Starting

An intriguing issue I faced was the WiFi not starting up. Key kernel log entries included:

[   12.300798] br-lan: port 1(wlan0) entered blocking state
[   12.306156] br-lan: port 1(wlan0) entered disabled state
[   12.311616] device wlan0 entered promiscuous mode
[   12.360514] device wlan0 left promiscuous mode
[   12.365023] br-lan: port 1(wlan0) entered disabled state

Thanks again for any insights or suggestions you can offer. If you've encountered similar issues or have experience with Docker on OpenWrt, I'd love to hear your thoughts and how you navigated these challenges.

Broadcom wifi is a dead end, unless you're into 802.11g speeds.

Also 21.02 is EOL, you should upgrade.

Update the bootloader here is a video on how.

It helps and is suggested in the hardware section on the board but you may have used the Firmware selector here

Re flash the sd card with that link and choose Customize installed packages and/or first boot script

It might take a while if the server is busy.

I cannot help you with Docker but at least you will be up to date with most if not all the packages the Pi needs.

...and you only get one radio. 2.4 or 5. Cannot do both.

@frollic @LilRedDog

Thank you both for your input. I've attempted upgrading to OpenWrt 23.05, but encountered compilation challenges with dockerd due to the transition from iptables to nftables. I appreciate the suggestion, and I'll certainly give upgrading another try. The advice on updating the bootloader is also noted and will be looked into.

However, I'm still keen on finding a solution to the specific issues I'm facing with Docker and my WiFi setup on OpenWrt. My main challenges are getting Docker to run smoothly without causing WiFi connectivity problems. Specifically, when dockerd starts, I encounter various errors such as connection issues with containerd.sock , deprecated containerd configuration, and failure to load the io.containerd.snapshotter.v1.devmapper plugin. Additionally, I'm dealing with a situation where my WiFi does not start up properly whenever Docker is compiled into the system. I'm particularly looking for insights or solutions that could address these Docker-related concerns and the WiFi radio not starting when Docker is compiled.

Any further advice or suggestions specifically targeting these areas would be greatly appreciated!

What exactly are you compiling ?

Docker is available in the Openwrt repo.

I'm using the OpenWrt build system and compiling OpenWrt from scratch, along with selected packages and configurations. I chose this method over the image builder because I encountered some challenges in getting Docker to work properly with the image builder. Compiling from scratch seemed like a better option because I had more control over selecting kernel configs with the make menuconfig

If "I encountered some challenges in getting Docker to work properly with the image builder" means it tossed a compile error inputting the same manually is not likely to work.

But, I already said, I know nothing about Docker.

Hey, thanks for the help. I went back to the image builder and managed to get it working with some added packages.

1 Like

Please mark the problem has been solved.image

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.