Docker-Machine create Windows 10: Powershell Problems

1

I'm trying to create a docker-machine in windows 10 with the following command:

docker-machine --debug create --driver hyperv default2

Complete debug: link

But I'm taking the following error, just like this, with the carecters like this:

(default2) DBG | [executing ==>] : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive New-VM default2 -Path 'C:\Users\obata\.docker\machine\machines\default2' -SwitchName 'Op��o Padr�o' -MemoryStartupBytes 1024MB
(default2) DBG | [stdout =====>] :
(default2) DBG | [stderr =====>] : New-VM : O Hyper-V n�o p�de localizar um comutador virtual com o nome "Op??o Padr?o".
(default2) DBG | No linha:1 caractere:1
(default2) DBG | + New-VM default2 -Path 'C:\Users\obata\.docker\machine\machines\defaul ...
(default2) DBG | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(default2) DBG |     + CategoryInfo          : InvalidArgument: (:) [New-VM], VirtualizationException
(default2) DBG |     + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.NewVM
(default2) DBG |
(default2) DBG |
Error creating machine: Error in driver during machine creation: exit status 1
notifying bugsnag: [Error creating machine: Error in driver during machine creation: exit status 1]
    
asked by anonymous 21.07.2018 / 04:48

1 answer

0

I solved this problem by setting up powershell caching with help here:

link

    
21.07.2018 / 05:21