How to execute a Docker Image against test project agent
Have converted my open sdk project code into a docker image, which accepts the following environmental parameters:
- browser name
- agent url
my agent is installed in my local machine and accessible at: http://localhost:8585, but when I pass this as an environmental parameter to my docker image ( obviously it throws error saying cannot connect to agent), because cannot access localhost from within a container
So we need to provide machine IP instead of localhost, but at http://machineIP:8585 test project agent is not accessible
How to overcome this issue, this is highly important if we are deploying our docker image within Docker Swam or Kubernetes