Huawei / DockerMachineDriver4OTC

Apache License 2.0
10 stars 18 forks source link

Expose Internal IP Address #13

Open janeczku opened 6 years ago

janeczku commented 6 years ago

Some implementations need to know the internal IP address of the VM. Please add a Driver property of PrivateIPAddress.

x1022as commented 6 years ago

will take a look at this.

feel free to commit a pr if you are willing to.

x1022as commented 6 years ago

seems it won't work without modifying docker-machine.

private-address is allocated, and can not be fetched before instance created.

docker machine save driver struct to disk with its initial info, private ip address is not allocated yet.