I have this local wlan0 ip address that I would like to rsync data from:
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel qlen 1000
link/ether b8:27:eb:b6:29:fb brd ff:ff:ff:ff:ff:ff
inet 10.42.0.1/24 brd 10.42.0.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::f252:6354:809c:e249/64 scope link
valid_lft forever preferred_lft forever
I have a container running on that same host that I would like to run the rsync command on. How do I give my container access to that ip address?
Inside the container, ip a
only shows:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
153: eth0@if154: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0
valid_lft forever preferred_lft forever
I know that overlay networks are not implemented in balena-engine. Is there another way to give my container access to the host network?
Some additional background:
I am trying to get files off of my deployed devices in the field.
My current solution is to store the files in an SSD and then unplug the SSD when I need the files. The weakness is that my most recent batch of infield devices are not easily accessible.
With this system, I can bring a RaspberryPi Wifi Hotspot into the vicinity of one of my deployed devices. This way, the deployed device will automatically connect with my wifi hotspot, and I can get files off of the deployed device with rsync.
Ideally, rsync will run automatically inside of the container running the raspberry pi hotspot when it detects a deployed device that connects with it.
Perhaps there is a better way to get access to files on deployed devices, I would love to hear about alternatives.