Docker Community Forums

Share and learn in the Docker community.

Docker compose and problems with hyper-v networking


(Laubrino) #1

Hello.
I’m running Docker with hyper-v under Windows. I’m using docker-compose to run services. And I don’t know, how can I access a service from both worlds - from another container and from windows host - through the same IP/port. Is that possible? It is possible on Mac and on Linux, but I cannot figure out, how to make it work with hyper-v.

Please see the picture. http://s3.postimg.org/qnms3hrib/docker.png
I can connect to the Service1 from my windows host through the mapped port (green), but not from another container (red). Why the port is not accessible? Is it possible to make it accessible?
Or any other solution how to access a service from both worlds through the same IP/port?
Thank you.


(Laubrino) #2

Solved. I have to connect through IP 10.12.0.38. That’s the trick.