Docker Community Forums

Share and learn in the Docker community.

Cannot connect to Docker running in my Azure Windows 10 VM


(Sunainadg) #1

First I’ll tell u my environment.

I’m using a Windows 10 Azure VM as my dev machine along with Docker for Windows.
Containers being used— Linux (which means its a Linux VM running inside the Hyper-V of my Windows 10 VM)

I have a multi-chain running inside my Linux container using dockers. I used docker-compose to set up 3 nodes of my multichain inside my container. (Master node, slave node, explorer node).
My master node has its ports 8002 and 7557 published using the following command in the docker-compose file:

-ports:
    8002
    7557
-expose:
    "8002:8002"
    "7557:7557"

I have an API app running in my windows 10 VM (developing in VS2017)

I need the IP address of my Master node so that I can connect to my master node from my Windows 10 Azure VM.

How do I get that IP address?

I short I must be able to connect to my Master node inside my Linux container from my Windows 10 VM dev machine. How to get that IP address?

I need this urgently.