Skip to content

Fix for NetworkSettings api change (docker engine >=29.0.0)#197

Open
altaurog wants to merge 2 commits intotox-dev:masterfrom
altaurog:fix/docker-network-api-change
Open

Fix for NetworkSettings api change (docker engine >=29.0.0)#197
altaurog wants to merge 2 commits intotox-dev:masterfrom
altaurog:fix/docker-network-api-change

Conversation

@altaurog
Copy link
Copy Markdown

get_gateway_ip relies on NetworkSettings.Gateway, which has been deprecated for over ten years. This field was removed in docker 29.0.0, released on 2025-11-10. This fix favors the new API data schema so as to work with the latest versions of docker engine. Quite possibly the old interface code could be removed altogether.

An open question is whether reliable support is required for a scenario in which the container has multiple networks, in which case preference should presumably be given to specific networks and not necessarily the first network listed.

The old, deprecated interface was removed in docker 29.0.0, 2025-11-10
@altaurog altaurog changed the title Fix for docker NetworkSettings api change (docker engine 29.0.0 and later) Fix for docker NetworkSettings api change (docker engine >=29.0.0) Mar 17, 2026
@altaurog altaurog changed the title Fix for docker NetworkSettings api change (docker engine >=29.0.0) Fix for NetworkSettings api change (docker engine >=29.0.0) Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant