File "/home/srdjan/.local/pipx/venvs/tox/lib/python3.13/site-packages/tox_docker/plugin.py", line 53, in get_gateway_ip
ip = container.attrs["NetworkSettings"]["Gateway"] or "0.0.0.0"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'Gateway'
Not sure what/when populates NetworkSettings, and why are we sure that Gateway should be there. Maybe container.attrs["NetworkSettings"].get("Gateway", "0.0.0.0") ?
Not sure what/when populates
NetworkSettings, and why are we sure thatGatewayshould be there. Maybecontainer.attrs["NetworkSettings"].get("Gateway", "0.0.0.0")?