Docker Community Forums

Share and learn in the Docker community.

Using Docker for Window's docker-machine create


(Chribben) #1

Expected behavior

Creation of a new docker host (VM)

Actual behavior

Creation failed

Information

Output from docker-machine create -d hyperv tempbox1
Running pre-create checks…
Creating machine…
(tempbox1) Copying C:\Users\Christian.docker\machine\cache\boot2docker.iso to C:\Users\Christian.docker\machine\machin
es\tempbox1\boot2docker.iso…
(tempbox1) Creating SSH key…
(tempbox1) Creating VM…
(tempbox1) Using switch “DockerNAT”
(tempbox1) Creating VHD
(tempbox1) Starting VM…
(tempbox1) Waiting for host to start…
Waiting for machine to be running, this may take a few minutes…
Detecting operating system of created instance…
Waiting for SSH to be available…
Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded

Steps to reproduce the behavior

  1. Run docker-machine create -d hyperv tempbox1

(Michael Friis) #2

Nice find.

This is because docker-machine will tend to use the DockerNAT switch by default. I tried creating a separate external switch and using that, as mentioned in the docs. This works fine:

docker-machine create -d hyperv --hyperv-virtual-switch external-switch tempbox1

Overall, we don’t envision users using docker-machine to create more local machines (it’s included to create remote machines).

I’ve created an issue to track documenting this more clearly.


Docker machine stuck on "Waiting for ssh to be available..."
(Chribben) #3

OK, thanks for the reply!


(Doug Simmons) #4

you might want to re-think this, especially if someone is going through the docker-swarm getting started docs…

docs will certainly help. :slight_smile:


(Orangesnap) #5

Hi Doug, Thanks, this thread is helpful. I’ve updated the Swarm docs some but am updating both the Docker for Windows and Docker Machine docs again today to make sure they properly cover using Docker for Windows version of Docker Machine w/hyperv driver, and for use with multi-node Swarm.

I’ll try to remember to ping you on this thread when the new docs are up.–Vicky


(Orangesnap) #6

Hi, new docs are up now regarding the Microsoft Hyper-V driver for Docker Machine, and how to use Docker Machine with Docker for Windows.

Please see https://docs.docker.com/machine/get-started/ and https://docs.docker.com/machine/drivers/hyper-v/.

Thanks for the feedback on the docs!

–Vicky


(Doug Simmons) #7

Looks great Vicky! Thanks!


(Wasabigeek) #8

Is it a must to be plugged in via Ethernet? I’ve tried following the instructions in that link except the Ethernet one (my ultrabook doesn’t have the port) and got stuck still, although now the number of retries are limited:

Waiting for SSH to be available...
Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded

What can I do?

docker-machine.exe version 0.10.0, build 76ed2a6
windows 10


(Shriram) #9

I had a similar issue
Does trying any of the instructions at http://stackoverflow.com/questions/34641003/error-checking-tls-connection-error-checking-and-or-regenerating-the-certs
help ?