docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

Creating VM using virtualBox throws IP error #4443

Open phillymojo opened 6 years ago

phillymojo commented 6 years ago

OS X Docker version 18.03.0-ce, build 0520e24

I am walking the tut (https://docs.docker.com/get-started/part4/#create-a-cluster), and am getting the following error:

$ docker-machine create --driver virtualbox myvm1
Running pre-create checks...
Creating machine...
(myvm1) Copying /Users/mbonar/.docker/machine/cache/boot2docker.iso to /Users/mbonar/.docker/machine/machines/myvm1/boot2docker.iso...
(myvm1) Creating VirtualBox VM...
(myvm1) Creating SSH key...
(myvm1) Starting the VM...
(myvm1) Check network to re-create if needed...
(myvm1) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Error creating machine: Error running provisioning: Could not find matching IP for MAC address 080027ad9115

At this point I see the VM running in VirtualBox, and I am able to SSH to it, but it is not exposing a URL/IP:

$ docker-machine ls
NAME    ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER    ERRORS
myvm1   *        virtualbox   Running                 Unknown   Could not find matching IP for MAC address 080027ad9115

Can someone point in the right right direction as to what I am doing wrong? It feels like a VirtualBox setting I am overlooking (I clean out my old VBox and install latest), but I am lost as to what settings it needs.

Thanks!

sh0umik commented 6 years ago

I am having the same issue on High Sierra with

Version:    18.03.0-ce
 API version:   1.37
 Go version:    go1.9.4
 Git commit:    0520e24
 Built: Wed Mar 21 23:06:22 2018
 OS/Arch:   darwin/amd64
 Experimental:  false
 Orchestrator:  swarm