Search code examples
dockerraspberry-piwifi

Docker: get access to wifi interface


I am pretty new to docker. At the moment I want to maintain a network of different Rapsberry PIs. Each PI should have the same OS with exactly the same system running. To handle deployment and updates of Software, I want to handle these things by docker.

Currently I am using HypriotOS, which offers docker on their Images.

My Main goal is to run an applocation in the docker containers, which need to access the wifi interface directly. The pure network access won't be enough, there needs to be deeper access like changing the wifi mode (Monitor Mode).

Long Story short: is it possible to passthrough an USB WiFi card directly to the docker Container, that it appears as wlan0 interface? Or are there other ways that you can think of?

Thanks for your answers in advance!


Solution

  • Take a look at the privileged flag for your container, it will give you full access to the devices on the system. See the Docker Run Documention for more information.