Changing wifi network from within docker container?

Is it possible to change what wifi network my raspberry pi is connected to from within the docker container? (asking specifically for conman and resinOS v1)

Hey @zain, it is possible, but normally not recommended because it has a very real danger of pulling your device offline and having to send some one to service the device. With resinOS 2.0 its a lot easier and in the future we hope to use some of networkManagers configuration check point functionality.

For now I think the best source of information on add in a new wifi connection from within the container is to look at the way it is done in resin-wifi-connect, specifically you can take a look at connman.coffee where all the connman 1.X specific code lives.