File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ function New-LinuxKitVM {
8989 $vm = Get-VM $VmName - ea SilentlyContinue
9090 if ($vm ) {
9191 if ($vm.Length -ne 1 ) {
92- Fatal " Multiple VMs exist with the name $VmName . Delete invalid ones or reset Docker to factory defaults ."
92+ Fatal " Multiple VMs exist with the name $VmName . Delete invalid ones."
9393 }
9494 } else {
9595 Write-Output " Creating VM $VmName ..."
@@ -137,7 +137,7 @@ function New-LinuxKitVM {
137137
138138 $iso = $vm | Get-VMFirmware | select - ExpandProperty BootOrder | ? { $_.FirmwarePath.EndsWith (" Scsi(0,1)" ) }
139139 $vm | Set-VMFirmware - EnableSecureBoot Off - FirstBootDevice $iso
140- $vm | Set-VMComPort - number 1 - Path " \\.\pipe\docker $VmName -com1"
140+ $vm | Set-VMComPort - number 1 - Path " \\.\pipe\$VmName -com1"
141141
142142 Write-Output " VM created."
143143}
You can’t perform that action at this time.
0 commit comments