I have docker containers running using a network. I run a test which uses BrowserWebDriverContainer, can the testcontainer access the external docker network used by the other docker container, so the testcontainer can access the docker tomcat by name?
Asked
Active
Viewed 356 times
0
-
What happens if you try it? Have you read through https://docs.docker.com/ and its discussion on (bridged) networking setups, and where container DNS names are visible? – David Maze Jul 10 '19 at 14:00
-
i was able to resolve the issue in the code, after the testContainer is started, to connect it to the external_network used by my other docker containers by running: docker network connect external_network testContainerId – user518066 Jul 10 '19 at 16:53