-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyper-V Get-VMHost -ComputerName localhost #1077
Comments
Hi @Laruxo Since you're on an Education edition of Windows - you might not have all the Hyper-V features installed. Try running this from an elevated powershell prompt, then rebooting and reinstalling Docker.
|
Hello @jasonbivins |
I can confirm that this happens for me as well. I tried on stable and edge and get the same issue - I have an edited version of the powershell file if you'd like a PR. docker versionClient: docker version (edge)Client: gcim win32_operatingsystem | select Caption, Version, OSArchitecture | flName : Microsoft Windows 10 Pro |
Hello, I have the same issue too: docker versionClient: gcim win32_operatingsystem | select Caption, Version, OSArchitecture | flCaption : Microsoft Windows 10 Professionnel |
This worked for me, thanks! |
I just recently installed Docker for Windows on my work PC, which is Windows 10 Pro 10.0.16299 and I had issues like the one above enabling Linux containers. I tried changing the "localhost" to the reported machine name (the name listed if I just did "Hyper-V\Get-VMHost", since there is only one returned) and I still got the same error. I solved it by removing the "-ComputerName" for all commands listed in the file MobyLinux.ps1 in the "function New-MobyLinuxVM { }" and it worked. Hope this helps. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Docker starts
Actual behavior
Docker fails to start
Information
65249CEF-95DE-471A-A1F8-BC2C4684F506/2017-09-07_22-07-26
Windows 10 Education. When starting Docker I receive an error that pointed me to command
Hyper-V\Get-VMHost -ComputerName localhost
inC:\Program Files\Docker\Docker\resources\MobyLinux.ps1
.When running it I receive error:
I tried running several variations of the same command:
Hyper-V\Get-VMHost
orHyper-V\Get-VMHost -ComputerName .
and both of them work fine.So I tried editing mentioned file and removing all results of
-ComputerName localhost
.And now Docker starts successfully.
Steps to reproduce the behavior
(on my machine, no idea what is so special about it)
Hyper-V\Get-VMHost -ComputerName localhost
Hyper-V\Get-VMHost
which will workThe text was updated successfully, but these errors were encountered: