I have a peice of software that I need to run inside a container, it’s similar to the wi-fi configuration tool that’s avaialble however for this project I need to use this other software.
The software uses connman to configure wi-fi and connect it to a network, however I haven’t had success with it in a container.
I’ve given the container privileged access, access to dbus and host network access of which when I do then get it started it can control wi-fi devices but breaks communication with Balena Cloud.
Is there any ideas on how to get it to work nicely with the hostos?
It uses the GNU Linux tool connman (https://01.org/connman) to control wi-fi interfaces, when I get it running inside a container it seems to cause conflicts on the hostos.
If you want to make changes to the host OS’ network from the container, you should set network_mode in your docker-comopse similar to what is set in this file. That way you won’t have any conflicts I think.
Thanks. We’re looking at manufacturing ready to sell hotspots, essentially two of the containers are the same as DIY Hotspots (the packet forwarder and miner) which are both working fine.
However the last piece of software is the configuration tool for the ready to go hotspots, essentially it advertises on bluetooth for the official helium app to connect to which then allows the customer to connect it to wi-fi and configure the miner.
I had to allow DBUS access I believe for bluetooth, it also hooks into it I think to communicate with the miner (I had to edit the Host OS to add the configuration files to the host DBUS Server to get it to work).
I think it also uses dbus as a communication method from the app to the miner.
Yes, probably during the configuration workflow, to identify the app with the miner this would be needed. And probably for further instructions. I’m releasing the code on a balena app to test myself if that’s ok for you.