Skip to content

Use inspectNetworkCmd to get the gateway's IP#2151

Merged
bsideup merged 1 commit intomasterfrom
resolve_docker_host_ip_via_network_inspect
Dec 19, 2019
Merged

Use inspectNetworkCmd to get the gateway's IP#2151
bsideup merged 1 commit intomasterfrom
resolve_docker_host_ip_via_network_inspect

Conversation

@bsideup
Copy link
Copy Markdown
Member

@bsideup bsideup commented Dec 5, 2019

To avoid running a container with ip|awk, we can simply inspect the bridge network instead.

This idea was discovered while hacking on testcontainers/testcontainers-rs#139

@rnorth
Copy link
Copy Markdown
Member

rnorth commented Dec 19, 2019

I've tested this with our internal derivative of dind-drone-plugin and am happy that it behaves consistently in even our slightly complicated DinD setup 😄.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants