Docker-Machine create Windows 10: Powershell Problems

Asked

Viewed 202 times

2

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

Docker-machine --debug create --driver hyperv default2

full debug: https://pastebin.com/ccAeqYxL

But I’m making the following mistake, exacting this way, with the carecters this way as you can see:

(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]
  • Just for testing, if you use the name teste in place of Opção Padrão, works? If it works or gives another completely different error should be encoding/charset problem. If you make the same mistake, then it must be something else.

  • It gives the same answer: New-VM : Hyper-V could not locate a virtual switch named "Test".

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.