Containing OpenWRT

It should work on raspberry, and allows to use module compiled for the linux kernel (which are harder to include for OpenWrt). - OpenWrt in Docker / contain your router

On Raspberry Pi

Setup Raspian + Docker

Setup wifi driver

Teleport the Wi-Fi

Containers are isolated from the host in several ways. They have their own PID namespace, their own user namespace, and their own network namespace. But since containers are all running atop the host kernel, we can expose various resources from the host to the container, like network interfaces, by moving them from the primary namespace to that of the container.

Docker provides a –network=host option, where your container runs in the same network namespace as the rest of the system’s processes. But if you only want a single interface to be controlled directly by the container, you need to do some command-line voodoo.

Also, depending on your Wi-Fi drivers, this might not work at all. Some drivers support setting the network namespace while others will return an error.

Grafana Monitoring

Ressources

Written on May 22, 2021, Last update on May 23, 2021
network docker raspberry-pi