Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify usage of TESTCONTAINERS_HOST_OVERRIDE for DinD on Docker Desktop #6383

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

kiview
Copy link
Member

@kiview kiview commented Jan 3, 2023

While #6282 tried to clarify the usage of Testcontainers in DinD setups on Docker Desktop (based and what we learned about using docker.sock.raw from this comment in Docker Desktop), we actually learned that this won't work when running a DinD setup on Docker Desktop using Docker Compose V2 (this holds true on Mac and on Windows). While we are not sure about the root cause that makes sibling containers inaccessible using the default gateway, we suspect that is can be related to the default Docker Compose network.

However, we identified that configuring TESTCONTAINERS_HOST_OVERRIDE to use docker.host.internal provides a stable experience in all scenarios. Since using DinD requires some manual configuration in the first place, it does not really matter if we have to manually touch the config to use the raw socket or instead use the override, so we can document the widely stable approach instead.

This means, we can also close #4396 now, since this behavior for host ort 0 was an accidental background as outlined by Docker in the comment mentioned above and we now have a good workaround for Docker Desktop.

@kiview kiview requested a review from a team as a code owner January 3, 2023 14:26
@kiview kiview requested a review from HofmeisterAn January 3, 2023 14:26
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