4

I need to create a machine with specific Ip. I tried somethig like this :

docker-machine create test --url tcp://192.168.59.103:2376 -d "virtualbox"

Is there any way to do that ? Thanks

kleww
  • 101
  • 3
  • 8

1 Answers1

1

Unfortunately, it is still not possible, there is an open feature request to make it. The only way you can somehow specify it, is to provide --virtualbox-hostonly-cidr property, while you run create command for docker-machine, like:

--virtualbox-hostonly-cidr "192.168.99.1/24"

Which make you dcoker machine ip within a range of CIDR 192.168.99.1/24. Note, it'll not work, if you'll try to specify CIDR like /32 to recieve only one available ip address.

Stanislav
  • 27,441
  • 9
  • 87
  • 82