-
Notifications
You must be signed in to change notification settings - Fork 303
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
Docker in Docker on Mac requires to use host.docker.internal #159
Comments
Running into the same issue on the macOS at least, but haven't yet tried in the actual CI. Looking at the source it looks like it's possible to pass But that means I have to initialise it with the gateway IP first in order to everything to work correctly. |
After much head-scratching trying to get things working with docker-desktop on Linux, I found this https://docs.docker.com/desktop/networking/ So using A possible solution would be to detect the docker context as |
this is a huge blocker for people coming to testcontainers with a mac |
hi @mattfysh thanks for the note and sorry for the delays on answering! :) I think we're missing a few labels to categorise the issue and see where the weaknesses of the project lie! We've also made some effort to re-vitalise the project so it's easier to contribute. If you think you have an idea how to solve it (I didn't have the time myself yet) then please raise a PR and we can give you a review! |
I want to use a mongodb testcontainer within docker (to run in CI). When I use the testcontainer on the host, all works fine. However, when I use it inside docker, I need to access the testcontainer via the host (
host.docker.internal
). Is there some way forget_connection_url()
to always return the "right" connection url?I tried to put together an MWE:
The text was updated successfully, but these errors were encountered: