Closed mikehaller closed 1 year ago
Hi @mikehaller, thank you for reporting this issue. I checked what could be wrong and I found out that apparently the --priviledged
flag is not working as expected, because not all linux capabilities are applied when it is used. Unfortunately, currently I can't think of any workaround.
Hi @mikehaller, the problem with the --priviledged
flag is fixed - #153. Could you please try again using the latest changes?
Fix is already provided and the issue is now getting stale.
I'd like to run a container with hostapd with access to the host's physical Wifi, so that I can run an ad-hoc Access Point.
Configuration with
network: host
andprivileged: true
have been tested, but i only get "Operation not permitted" when I try to run hostapd or manually testing withip link set wlan1 up
.For testing purposes, I run the setup within qemu, so that I can use
modprobe mac80211_hwsim radios=2
to bring up two virtual wifi interfaces. When I runip link set wlan1 up
on the qemu guest shell (host$), it works fine. When I run the same command inside of a Kanto-managed container (container$), i get the following error message:This is the setup:
For Docker, the solution seems to be to add
--cap NET_ADMIN
, but that's not available in kanto-cm. Any tipp on how to configure a container with additional capabilities, so that i can access and manage the Wifi devices using kanto?