Open alexellis opened 8 years ago
Finally failed with:
Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default * xhyve Running Unknown IP not found for MAC in DHCP leases
I'm experiencing this issue as well.
[~] 6s 1 $ docker -v Docker version 1.11.1, build 5604cbe [~] $ docker-machine -v docker-machine version 0.7.0, build a650a40
Driver 0.2.2 (installed through brew, applied elevated permissions)
default * xhyve Running Unknown IP not found for MAC in DHCP leases
@zchee any ideas?
@alexellis You can try to clean up files /var/lib/db/dhcp_leases
and /etc/exports
(just in case), then remove machine docker-machine rm default
and create it again.
P.S don't forget to backup them first
I have the same issue and my profile and software version is below.
One thing is that I don't have the /var/db/dhcp_leases file
$ ls /var/db/dhcpd_leases
ls: /var/db/dhcpd_leases: No such file or directory
$ system_profiler SPHardwareDataType Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro11,5
Processor Name: Intel Core i7
Processor Speed: 2.8 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 16 GB
Boot ROM Version: MBP114.0172.B09
SMC Version (system): 2.30f2
Serial Number (system): ***********
Hardware UUID: *********************
$ sw_vers ProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G31
$ docker-machine --debug create --driver xhyve \
--engine-env http_proxy=http://xxxxxxxxx \
--engine-env https_proxy=http://xxxxxxxxx \
--engine-env no_proxy="$no_proxy" default
Docker Machine Version: 0.8.2, build 6253938
Found binary path at /usr/local/bin/docker-machine-driver-xhyve
Launching plugin server for driver xhyve
Plugin server listening at address 127.0.0.1:49771
() DBG | operation not supported by device
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine-driver-xhyve
Launching plugin server for driver xhyve
Plugin server listening at address 127.0.0.1:49775
() DBG | operation not supported by device
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(default) Calling .GetMachineName
(default) Calling .DriverName
(default) Calling .GetCreateFlags
(default) Calling .SetConfigFromFlags
Creating CA: /Users/xxxxxxxx/.docker/machine/certs/ca.pem
Creating client certificate: /Users/xxxxxxxx/.docker/machine/certs/cert.pem
Running pre-create checks...
(default) Calling .PreCreateCheck
(default) DBG | ===== Docker Machine xhyve Driver Version 0.2.3 (9d6adee) =====
(default) DBG |
(default) Calling .GetConfigRaw
Creating machine...
(default) Calling .Create
(default) Image cache directory does not exist, creating it at /Users/xxxxxxx/.docker/machine/cache...
(default) DBG | Fix cache directory permission...
(default) No default Boot2Docker ISO found locally, downloading the latest release...
(default) Latest release for github.com/boot2docker/boot2docker is v1.12.3
(default) Downloading /Users/xxxxxxx/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.12.3/boot2docker.iso...
(default) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(default) DBG | Fix boot2docker.iso file permission...
(default) Copying /Users/xxxxxxx/.docker/machine/cache/boot2docker.iso to /Users/xxxxxxx/.docker/machine/machines/default/boot2docker.iso...
(default) Creating VM...
(default) DBG | Mounting boot2docker.iso
(default) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
x(default) /dev/disk3 /Users/xxxxxxxxxxxxxx/.docker/machine/machines/default/b2d-image
(default) DBG | Extracting /Users/xxxxxxxxxx/.docker/machine/machines/default/b2d-image/boot/vmlinuz64 into /Users/xxxxxxxx/.docker/machine/machines/default/vmlinuz64
(default) DBG | Extracting /Users/xxxxxxxx/.docker/machine/machines/default/b2d-image/boot/initrd.img into /Users/xxxxxxx/.docker/machine/machines/default/initrd.img
(default) DBG | Unmounting boot2docker.iso
(default) DBG | executing: &{/usr/bin/hdiutil [hdiutil detach /Users/xxxxxxxxxx/.docker/machine/machines/default/b2d-image] []
+1. Any progress on getting this solved? I'm experiencing same issues.
Met same issue on Mac OS High Sierra. The guilty was the Corporate MacAfee Endpoint Security (Firewall module). I was lucky to be able to disable it during machine setup and this way the IP / DHCP leases does not happen anymore, and my docker-machine is able to start!
Reinstall all docker toolbox. Restart macbook. Remove default and create again successful.
I kept getting stuck with
docker-machine start
with the following error:I tried creating a new docker-machine, but it ended-up getting stuck at the same point:
Please can someone help?
OS: 10.11.4 (15E65)