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.
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.
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!
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.