Docker machine stuck on "Waiting for ssh to be available..."

Hi I have similar problem to @vishalu. I have also installed docker on windows 10 pro (docker version 1.12.3, build 6b644ec).

I’ve already created virtual switch in the same way as it is described in this tutorial https://docs.docker.com/machine/drivers/hyper-v/

and when I try to create vm using following comand:
docker-machine create -d hyperv --hyperv-virtual-switch “Primary Virtual Switch” manager1

it cannot connect to vm via ssh. Any ideas what can I do more?

Waiting for machine to be running, this may take a few minutes…
(manager1) Calling .GetState
(manager1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM manager1 ).state
(manager1) DBG | [stdout =====>] : Running
(manager1) DBG |
Detecting operating system of created instance…
(manager1) DBG | [stderr =====>] :
Waiting for SSH to be available…
Getting to WaitForSSH function…
(manager1) Calling .GetSSHHostname
(manager1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM manager1 ).state
(manager1) DBG | [stdout =====>] : Running
(manager1) DBG |
(manager1) DBG | [stderr =====>] :
(manager1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM manager1 ).networkadapters[0]).ipaddresses[0]
(manager1) DBG | [stdout =====>] : 192.168.90.166
(manager1) DBG |
(manager1) Calling .GetSSHPort
(manager1) DBG | [stderr =====>] :
(manager1) Calling .GetSSHKeyPath
(manager1) Calling .GetSSHKeyPath
(manager1) Calling .GetSSHUsername
SSH binary not found, using native Go implementation
&{{{ 0 [] [] []} docker [0xc2bd70] []} 192.168.90.166 22 }
About to run SSH command:
exit 0
Error dialing TCP: dial tcp 192.168.90.166:22: connectex: Próba połączenia nie powiodła się, ponieważ połączona strona nie odpowiedziała poprawnie po ustalonym okresie czasu lub utworz
one połączenie nie powiodło się, ponieważ połączony host nie odpowiedział.

1 Like