So this might be known issue, but I can't find a way to assign a particular IP to the docker host I am creating with docker-machine. It gets assigned the 172.17.42.1 IP, which I cannot communicate on the network that I have available.
docker-machine -v
docker-machine version 0.3.0 (0a251fe)
govc version
govc v0.1.0-73-gfc131d4
govc about
Name: VMware vCenter Server
Vendor: VMware, Inc.
Version: 5.5.0
Build: 2183111
OS type: win32-x64
API type: VirtualCenter
API version: 5.5
Product ID: vpx
UUID: 5C794E19-7289-42C4-81D0-C02EAAAABC1C
docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM
docker-one vmwarevsphere Running tcp://172.17.42.1:2376
/cc @frapposelli
I've run into the same problem. The underlying issue is that an unmodified boot2docker installation is configured to get it's IP address via DHCP (RancherOS does as well). The only way I know to get around this currently is to create a custom ISO with the IP you want already configured. This is obviously inelegant.
Has there been any consideration of ad-hoc cloud-init support? Such would address this problem and a lot more.
Also, boot2docker and no formal ubuntu-trusty support? /sadface
@hhercules is this still an issue?
Sorry had not checked, but thank you @dkirrane. I will check this out once again later this month.
Is there any workaround yet to create the host with a static ip address, DNS server properly set and default gateway? As of today we are forced to configure these parameters during runtime and have to reconfigure after reboot as this is not persisted.
I don't know about assigning static IP/DNS, but my recently merged PR #3436 will work if you have DHCP configured on the VSPHERE_NETWORK you're attaching to. Previously the 172.x IP address of the internal docker bridge would leak out & halt docker-machine SSH'ing into the box, as you've seen.
If you can build docker-machine from source I suggest you do so & try again with DHCP.
+1 on this feature. Static IP assignment would be extremely beneficial.
+1 on this feature. Static IP assignment would be extremely beneficial.
+1 waiting this for 2 years already
Most helpful comment
Is there any workaround yet to create the host with a static ip address, DNS server properly set and default gateway? As of today we are forced to configure these parameters during runtime and have to reconfigure after reboot as this is not persisted.