I’m currently trying to get resin-wifi-connect to work within a container on a RaspberryPi 3.
I have got to the stage where running wifi-connect gives: “Error: Cannot find a WiFi device”
Is there anything else I need to enable that I might have overlooked?
Output of ls -al /etc/NetworkManager/system-connections/ on hostOS shows me resin-wifi-01. Within the other service it returns nothing.
One additional change that I needed to make to get wifi-connect to work at all was to set:
@WillFG The correct D-Bus address for running WiFi Connect in a container should be unix:path=/host/run/dbus/system_bus_socket on resinOS.
Are you installing the network-manager package inside your container? Inside a container WiFi Connect is not able to run with the default D-Bus address (/var/run/dbus/system_bus_socket).
The docker-compose.yml additionally needs (in case you have not specified it):
Thanks, it’s now connecting on the specified path.
I have not got it to work fully, beyond showing the UI and sometimes available networks, but I’ll research that some more before asking any further questions.
No problem with that as your input is valuable for making WiFi Connect better. Please do not hesitate to ping me if you encounter any issues or have questions.
Thanks, I put systemctl mask NetworkManager.service into my Dockerfile and that seems to have fixed it, in that resin-wifi-connect is now giving me “Internet connectivity established”. The Header errors seem to be a bit of a red herring.
Additionally I removed 80:80/tcp from docker-compose.yml as this was not in the examples.