Docker-machine, how to choose an IP with a virtual machine driver

I need to create a machine with a specific IP. I tried something like this:

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

Is there any way to do this? Thanks

+4
source share
1 answer

Unfortunately, this is still not possible, there is an open function request to do this. The only way you can specify it somehow is to provide the property --virtualbox-hostonly-cidrwhile you run the command createfor the docker machine, for example:

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

dcoker ip CIDR 192.168.99.1/24. , , CIDR, /32, IP-.

+1

Source: https://habr.com/ru/post/1607433/


All Articles