Windows Version 10.0.17134.167
Docker version 18.06.0-ce, build 0ffa825
docker-machine version 0.15.0, build b48dc28d
I am trying to follow the instructions found here: https://docs.docker.com/get-started/part4/#create-a-cluster
When I get the step of creating a machine:
docker-machine create -d hyperv --hyperv-virtual-switch "myswitch" myvm1
docker-machine creates the machine, but gets stuck in an infinite loop. When I open another powershell window and try “docker-machine ls” there, I see this:
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
myvm1 * hyperv Running Unknown IP not found
Here is the debug output from the create command:
Microsoft Windows [Version 10.0.17134.167] (c) 2018 Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>docker-machine --debug create -d hyperv --hyperv-virtual-switch "myswitch" myvm1 Docker Machine Version: 0.15.0, build b48dc28d Found binary path at C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe Launching plugin server for driver hyperv Plugin server listening at address 127.0.0.1:50431 () 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 C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe Launching plugin server for driver hyperv Plugin server listening at address 127.0.0.1:50433 () Calling .GetVersion Using API Version 1 () Calling .SetConfigRaw () Calling .GetMachineName (myvm1) Calling .GetMachineName (myvm1) Calling .DriverName (myvm1) Calling .GetCreateFlags (myvm1) Calling .SetConfigFromFlags Reading certificate data from C:\Users\user.name\.docker\machine\certs\ca.pem Decoding PEM data... Parsing certificate... Reading certificate data from C:\Users\user.name\.docker\machine\certs\cert.pem Decoding PEM data... Parsing certificate... Running pre-create checks... (myvm1) Calling .PreCreateCheck (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique (myvm1) DBG | [stdout =====>] : Hyper-V (myvm1) DBG | (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("S-1-5-32-578") (myvm1) DBG | [stdout =====>] : False (myvm1) DBG | (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") (myvm1) DBG | [stdout =====>] : True (myvm1) DBG | (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (Hyper-V\Get-VMSwitch).Name (myvm1) DBG | [stdout =====>] : nat (myvm1) DBG | Default Switch (myvm1) DBG | DockerNAT (myvm1) DBG | myswitch (myvm1) DBG | (myvm1) DBG | [stderr =====>] : (myvm1) DBG | local Boot2Docker ISO version: v18.06.0-ce (myvm1) Calling .GetConfigRaw Creating machine... (myvm1) Calling .Create (myvm1) DBG | local Boot2Docker ISO version: v18.06.0-ce (myvm1) Copying C:\Users\user.name\.docker\machine\cache\boot2docker.iso to C:\Users\user.name\.docker\machine\machines\myvm1\boot2docker.iso... (myvm1) Creating SSH key... (myvm1) Creating VM... (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (Hyper-V\Get-VMSwitch).Name (myvm1) DBG | [stdout =====>] : nat (myvm1) Using switch "myswitch" (myvm1) DBG | Default Switch (myvm1) DBG | DockerNAT (myvm1) DBG | myswitch (myvm1) DBG | (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") (myvm1) DBG | [stdout =====>] : True (myvm1) DBG | (myvm1) Creating VHD (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\New-VHD -Path 'C:\Users\user.name\.docker\machine\machines\myvm1\fixed.vhd' -SizeBytes 10MB -Fixed (myvm1) DBG | [stdout =====>] : (myvm1) DBG | (myvm1) DBG | ComputerName : COMPANY-LAPTOP64 (myvm1) DBG | Path : C:\Users\user.name\.docker\machine\machines\myvm1\fixed.vhd (myvm1) DBG | VhdFormat : VHD (myvm1) DBG | VhdType : Fixed (myvm1) DBG | FileSize : 10486272 (myvm1) DBG | Size : 10485760 (myvm1) DBG | MinimumSize : (myvm1) DBG | LogicalSectorSize : 512 (myvm1) DBG | PhysicalSectorSize : 512 (myvm1) DBG | BlockSize : 0 (myvm1) DBG | ParentPath : (myvm1) DBG | DiskIdentifier : 448DB021-9846-416C-980E-90DBCAF20F4F (myvm1) DBG | FragmentationPercentage : 0 (myvm1) DBG | Alignment : 1 (myvm1) DBG | Attached : False (myvm1) DBG | DiskNumber : (myvm1) DBG | IsPMEMCompatible : False (myvm1) DBG | AddressAbstractionType : None (myvm1) DBG | Number : (myvm1) DBG | (myvm1) DBG | (myvm1) DBG | (myvm1) DBG | (myvm1) DBG | [stderr =====>] : (myvm1) DBG | Writing magic tar header (myvm1) DBG | Writing SSH key tar header (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Convert-VHD -Path 'C:\Users\user.name\.docker\machine\machines\myvm1\fixed.vhd' -DestinationPath 'C:\Users\user.name\.docker\machine\machines\myvm1\disk.vhd' -VHDType Dynamic -DeleteSource (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyp er-V\Resize-VHD -Path 'C:\Users\user.name\.docker\machine\machines\myvm1\disk.vhd' -SizeBytes 20000MB (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\New-VM myvm1 -Path 'C:\Users\user.name\.docker\machine\machines\myvm1' -SwitchName 'myswitch' -MemoryStartupBytes 1024MB (myvm1) DBG | [stdout =====>] : (myvm1) DBG | Name State CPUUsage(%) MemoryAssigned(M) Uptime Status Version (myvm1) DBG | ---- ----- ----------- ----------------- ------ ------ ------- (myvm1) DBG | myvm1 Off 0 0 00:00:00 Operating normally 8.3 (myvm1) DBG | (myvm1) DBG | (myvm1) DBG | (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Set-VMDvdDrive -VMName myvm1 -Path 'C:\Users\user.name\.docker\machine\machines\myvm1\boot2docker.iso' (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Add-VMHardDiskDrive -VMName myvm1 -Path 'C:\Users\user.name\.docker\machine\machines\myvm1\disk.vhd' (myvm1) Starting VM... (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM myvm1 (myvm1) DBG | [stdout =====>] : (myvm1) Waiting for host to start... (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\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 (( Hyper-V\Get-VM myvm1 ).networkadapters[0]).ipaddresses[0] (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\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 (( Hyper-V\Get-VM myvm1 ).networkadapters[0]).ipaddresses[0] (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\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 (( Hyper-V\Get-VM myvm1 ).networkadapters[0]).ipaddresses[0] (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\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 (( Hyper-V\Get-VM myvm1 ).networkadapters[0]).ipaddresses[0] (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\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 (( Hyper-V\Get-VM myvm1 ).networkadapters[0]).ipaddresses[0] (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\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 (( Hyper-V\Get-VM myvm1 ).networkadapters[0]).ipaddresses[0] (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\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 (( Hyper-V\Get-VM myvm1 ).networkadapters[0]).ipaddresses[0] (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\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 (( Hyper-V\Get-VM myvm1 ).networkadapters[0]).ipaddresses[0] (myvm1) DBG | [stdout =====>] : (myvm1) DBG | [stderr =====>] : (myvm1) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\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 (( Hyper-V\Get-VM myvm1 ).networkadapters[0]).ipaddresses[0]