Hey @MarcoAbi
To mess with the network manager service in a container you need to make sure you that you have a few things in the right docker files:
In your docker-compose.yml:
io.resin.features.dbus: '1'
In your Dockerfile.template:
RUN apt-get update && apt-get install -y \
network-manager=1.14.* \
systemctl mask NetworkManager.service
Then I have:
ENV DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
I don’t know why you need your own initsystem for monitoring mode?
I unmanaged the device from the network manager cli then put it in monitoring mode. See my post here for my struggles with this. Or skip to the good parts here.
In general, anything that you can do on the host, you should be able to do in a privileged container with the right setup. It was hard for me to come around to that mindset.
Good luck and let me know if you have further questions. I have a bit of experience with monitor mode. In exchange, I would love to hear what adapter you’re using and what your performance is like if your willing to share!
-Thomas