Skip to content

fix: docker over user defined networks#335

Closed
amalucelli wants to merge 1 commit intotest-kitchen:masterfrom
amalucelli:patch
Closed

fix: docker over user defined networks#335
amalucelli wants to merge 1 commit intotest-kitchen:masterfrom
amalucelli:patch

Conversation

@amalucelli
Copy link
Copy Markdown
Contributor

@amalucelli amalucelli commented Mar 29, 2019

I started having the same issue as #304 (comment)

there is an issue when using this setup with user defined networks.

In those cases, the IPAddress at the NetworkSettings level is empty, and instead needs to be found on the Network. That nested value is also there when using the default bridge network, so I would think that it should be safe to use in any case:
I was able to get this working by changing the template to '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'

This happens over Google Cloud Build platform, where a new docker container is created to run the tests using a custom named network (cloudbuild), making it impossible to reach the original container without this change.

@amalucelli amalucelli changed the title patch fix: docker over user defined networks Mar 29, 2019
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