This image provides a network bridge configuration which replaces Balena's default NetworkManager.
The bridge is started via ifup and hence the env-var CONFIG_FILE_CONTENT contains an ifup configuration.
Example usage in a docker-compose file which puts all en* interfaces in a bridge with 3 static IPs and DHCP enabled:
balena-network-bridge:
image: nobleo/balena-network-bridge
privileged: true
network_mode: host
labels:
io.balena.features.dbus: '1'
cap_add:
- CAP_SYS_ADMIN
environment:
DBUS_SYSTEM_BUS_ADDRESS: unix:path=/host/run/dbus/system_bus_socket
CONFIG_FILE_CONTENT: |
allow-hotplug br0
iface br0 inet static
address 192.168.1.1/24
iface br0 inet static
address 192.168.2.1/24
iface br0 inet static
address 192.168.3.1/24
iface br0 inet dhcp
bridge_waitport 0
bridge_ports regex en.*
Content type
Image
Digest
Size
57 MB
Last updated
over 4 years ago
docker pull nobleo/balena-network-bridge