Docker Community Forums

Share and learn in the Docker community.

Official way to get the VM IP address?


(Per Rovegård) #1

I have a script that works with boot2docker, docker-machine and Docker for Windows. After upgrading from an early beta, it stopped working for Docker for Windows.

The script relies on being able to get the IP address of the Hyper-V VM. Previously I could do that by pinging a “docker” host. But with version 1.12.0 that doesn’t work anymore.

I have also tried to run Get-VMNetworkAdapter -vmname MobyLinuxVM unsuccessfully. It works in an elevated PS session, but that’s not an option for me.

Is there an official way to get the IP address of the VM?


(Per Rovegård) #2

Nevermind. 127.0.0.1 worked, just like Docker for Mac. :slight_smile: