I've got a app running on my computer in localhost:1235, and I'm trying to load test it.
I installed k6 container for docker to test it, but of course from the nature of docker, my container has a different localhost. I'm trying to understand what do.
I run the following command:
docker run -it --rm --net=host -v c:/users/k6:/k6 loadimpact/k6 run /k6/script
I read somewhere that --net=host doesn't work on windows, is that right? How would I find the host IP?
I've tried running by this tutorial: http://blog.michaelhamrah.com/2014/06/accessing-the-docker-host-server-within-a-container/
The IP I find 172.17.0.1 doesn't work in my test.
I also tried adding -p 1235:1235
but it failed, I guess docker tries to bind this port and just forward to it.
Thanks in advance, Chaim