-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How to network a Docker-Compose Container with a BrowserWebDriverContainer? #856
Comments
Hi @lbier001, sorry for taking so long to coming back for. There is currently no official way, to make However, I can show you a hacky way to access an existing network of an
This is Groovy code, but the exactly same use case that you've specified. Getting the network in Java will be a bit more fiddly, but of course also possible. You can use this network afterwards like this:
Does this help you? |
I'll close it, since the workaround should work 😉 |
@kiview Would be great to get corresponding workaround example code in Java. |
given: #465 How should I go about solving this? |
@runarhk does not seem to be related. Links are deprecated, but Networks are not |
Also, #2302 should make it easier to get started service instances and eliminate the |
Thanks for the quick response. My issue was connecting to a docker compose container from a BrowserWebDriverContainer in a Selenium test. I figured out using the approach mentioned in your docs does the trick ;) |
Example of Java
|
Hey all,
i'm tyring to network a Docker Compose Container with a BrowserWebDriverContainer. What is the most idiomatic way for connecting the above mentioned containers.
This is my current configuration:
This is my docker-compose.yml:
Or is the only way achieving this to use 2 separate GenericContainers and link them via .withNetwork() method?
The text was updated successfully, but these errors were encountered: