预期行为
Docker启动并运行!
实际行为
等待SSH可用...
重现行为的步骤
docker-machine create -d hyperv --hyperv-virtual-switch "myswitch" myvm1
(来自https://docs.docker.com/get-started/part4/#set-up-your-swarm)
大家好,当我尝试使用hyperV驱动程序创建一个docker机器时,我正在“等待SSH可用”但有时它正在工作,有时候不是这样我得到了以下日志。唯一改变的是IP地址的版本:使用IPV6创建失败。指令“networkadapters [0])。ipaddresses [0]”在机器创建失败时获得了IPV6地址。
创建机器时没有错误:
Waiting for SSH to be available...
(myvm1) DBG | [stderr =====>] :
Getting to WaitForSSH function...
(myvm1) Calling .GetSSHHostname
(myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM myvm1 ).state
(myvm1) DBG | [stdout =====>] : Running
(myvm1) DBG |
(myvm1) DBG | [stderr =====>] :
(myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM myvm1 ).networkadapters[0]).ipaddresses0 DBG | [stdout =====>] : 10.23.133.214
(myvm1) DBG |
(myvm1) DBG | [stderr =====>] :
(myvm1) Calling .GetSSHPort
(myvm1) Calling .GetSSHKeyPath
(myvm1) Calling .GetSSHKeyPath
(myvm1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none docker@10.23.133.214 -o IdentitiesOnly=yes -i C:\Users\Toto.docker\machine\machines\myvm1\id_rsa -p 22] C:\Program Files\Git\usr\bin\ssh.exe }
About to run SSH command:
exit 0
SSH cmd err, output: :
Detecting the provisioner...
创建机器时出错:
Waiting for SSH to be available...
Getting to WaitForSSH function...
(myvm2) Calling .GetSSHHostname
(myvm2) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Get-VM myvm2 ).state
(myvm2) DBG | [stdout =====>] : Running
(myvm2) DBG |
(myvm2) DBG | [stderr =====>] :
(myvm2) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Get-VM myvm2 ).networkadapters[0]).ipaddresses0 DBG | [stdout =====>] : fe80::215:5dff:fe84:ac46
(myvm2) DBG |
(myvm2) DBG | [stderr =====>] :
(myvm2) Calling .GetSSHPort
(myvm2) Calling .GetSSHKeyPath
(myvm2) Calling .GetSSHKeyPath
(myvm2) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none docker@fe80::215:5dff:fe84:ac46 -o IdentitiesOnly=yes -i C:\Users\Toto.docker\machine\machines\myvm2\id_rsa -p 22] C:\Program Files\Git\usr\bin\ssh.exe }
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err : exit status 255
output :
Getting to WaitForSSH function...
信息
诊断ID:64F0C90F-2963-4B91-97A4-4E8B649571E2 / 2017-06-14_14-40-28
版本17.03.1-ce-win12(12058)频道:稳定d1db126
Windows 10 Entreprise