It should be possible to use
nmcli to edit these settings from a ssh connection. The following command:
DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket nmcli connection edit <connectionName> would allow one to edit the connection properties.
nmcli needs to be installed inside the container as well.
Please test this beforehand on a non production device.