# Using Docker for Window's docker-machine create

**URL:** <https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032>\
**Category:** Docker Desktop\
**Tags:** windows\
**Created:** [March 30, 2016, 8:44am UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032 "2016-03-30T08:44:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![chribben](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/chribben/32/6203_2.png) [@chribben](https://forums.docker.com/u/chribben)\
**Post date:** [March 30, 2016, 8:44am UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/1 "2016-03-30T08:44:17Z")

</div>

### 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`

---

<div class="post-metadata">

**Author:** ![friism](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/friism/32/3570_2.png) [@friism](https://forums.docker.com/u/friism)\
**Post date:** [April 1, 2016, 5:05am UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/2 "2016-04-01T05:05:04Z")

</div>

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](https://docs.docker.com/machine/drivers/hyper-v/). 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.

---

<div class="post-metadata">

**Author:** ![chribben](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/chribben/32/6203_2.png) [@chribben](https://forums.docker.com/u/chribben)\
**Post date:** [April 1, 2016, 5:50am UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/3 "2016-04-01T05:50:52Z")

</div>

OK, thanks for the reply!

---

<div class="post-metadata">

**Author:** ![mach6](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@mach6](https://forums.docker.com/u/mach6)\
**Post date:** [May 6, 2016, 3:50am UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/4 "2016-05-06T03:50:52Z")

</div>

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

docs will certainly help. 🙂

---

<div class="post-metadata">

**Author:** ![orangesnap](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@orangesnap](https://forums.docker.com/u/orangesnap)\
**Post date:** [September 21, 2016, 10:25pm UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/5 "2016-09-21T22:25:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![orangesnap](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@orangesnap](https://forums.docker.com/u/orangesnap)\
**Post date:** [September 27, 2016, 7:01am UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/6 "2016-09-27T07:01:57Z")

</div>

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/](https://docs.docker.com/machine/get-started/) and [https://docs.docker.com/machine/drivers/hyper-v/](https://docs.docker.com/machine/drivers/hyper-v/).

Thanks for the feedback on the docs!

–Vicky

---

<div class="post-metadata">

**Author:** ![mach6](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@mach6](https://forums.docker.com/u/mach6)\
**Post date:** [September 27, 2016, 11:21pm UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/7 "2016-09-27T23:21:04Z")

</div>

Looks great Vicky! Thanks!

---

<div class="post-metadata">

**Author:** ![wasabigeek](https://avatars.discourse-cdn.com/v4/letter/w/f07891/32.png) [@wasabigeek](https://forums.docker.com/u/wasabigeek)\
**Post date:** [March 21, 2017, 5:14pm UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/8 "2017-03-21T17:14:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![testdockerapp](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@testdockerapp](https://forums.docker.com/u/testdockerapp)\
**Post date:** [May 2, 2017, 7:01am UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/9 "2017-05-02T07:01:44Z")

</div>

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](http://stackoverflow.com/questions/34641003/error-checking-tls-connection-error-checking-and-or-regenerating-the-certs)  
help ?

---

<div class="post-metadata">

**Author:** ![matiz7](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@matiz7](https://forums.docker.com/u/matiz7)\
**Post date:** [April 29, 2019, 3:43am UTC](https://forums.docker.com/t/using-docker-for-windows-docker-machine-create/8032/10 "2019-04-29T03:43:33Z")

</div>

similar question  
PS D:\Program Files\Docker Toolbox\> docker-machine -v  
docker-machine.exe version 0.14.0, build 89b8332  
PS D:\Program Files\Docker Toolbox\> docker-machine --storage-path=“D:\Program Files\Docker Toolbox\class1” create --engine-registry-mirror=https://someid.mirror.aliyuncs.com -d virtualbox redbox  
Running pre-create checks…  
Creating machine…  
(redbox) Copying D:\Program Files\Docker Toolbox\class1\cache\boot2docker.iso to D:\Program Files\Docker Toolbox\class1\machines\redbox\boot2docker.iso…  
(redbox) Creating VirtualBox VM…  
(redbox) Creating SSH key…  
(redbox) Starting the VM…  
(redbox) Check network to re-create if needed…  
(redbox) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.  
(redbox) Waiting for an IP…  
Error creating machine: Error in driver during machine creation: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded
