{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-win/issues/1077","repository_url":"https://api.github.com/repos/docker/for-win","labels_url":"https://api.github.com/repos/docker/for-win/issues/1077/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-win/issues/1077/comments","events_url":"https://api.github.com/repos/docker/for-win/issues/1077/events","html_url":"https://github.com/docker/for-win/issues/1077","id":256042358,"number":1077,"title":"Hyper-V Get-VMHost -ComputerName localhost","user":{"login":"Laruxo","id":6096645,"avatar_url":"https://avatars0.githubusercontent.com/u/6096645?v=4","gravatar_id":"","url":"https://api.github.com/users/Laruxo","html_url":"https://github.com/Laruxo","followers_url":"https://api.github.com/users/Laruxo/followers","following_url":"https://api.github.com/users/Laruxo/following{/other_user}","gists_url":"https://api.github.com/users/Laruxo/gists{/gist_id}","starred_url":"https://api.github.com/users/Laruxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laruxo/subscriptions","organizations_url":"https://api.github.com/users/Laruxo/orgs","repos_url":"https://api.github.com/users/Laruxo/repos","events_url":"https://api.github.com/users/Laruxo/events{/privacy}","received_events_url":"https://api.github.com/users/Laruxo/received_events","type":"User","site_admin":false},"labels":[{"id":415755103,"url":"https://api.github.com/repos/docker/for-win/labels/area/windows%2010","name":"area/windows 10","color":"fbca04","default":false},{"id":415755569,"url":"https://api.github.com/repos/docker/for-win/labels/kind/bug","name":"kind/bug","color":"FF8C94","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-07T19:18:51Z","updated_at":"2018-03-22T19:57:35Z","closed_at":null,"author_association":"NONE","body":"### Expected behavior\r\nDocker starts\r\n\r\n### Actual behavior\r\nDocker fails to start\r\n\r\n### Information\r\n\r\n65249CEF-95DE-471A-A1F8-BC2C4684F506/2017-09-07_22-07-26\r\n\r\nWindows 10 Education. When starting Docker I receive an error that pointed me to command\r\n`Hyper-V\\Get-VMHost -ComputerName localhost` in `C:\\Program Files\\Docker\\Docker\\resources\\MobyLinux.ps1`.\r\n\r\nWhen running it I receive error:\r\n```\r\nHyper-V\\Get-VMHost : Hyper-V encountered an error trying to access an object on computer 'localhost' because the\r\nobject was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the\r\ncomputer is running.\r\nAt line:1 char:1\r\n+ Hyper-V\\Get-VMHost -ComputerName localhost\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : ObjectNotFound: (:) [Get-VMHost], VirtualizationException\r\n    + FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.GetVMHost\r\n```\r\n\r\nI tried running several variations of the same command: `Hyper-V\\Get-VMHost` or `Hyper-V\\Get-VMHost -ComputerName .` and both of them work fine.\r\n\r\nSo I tried editing mentioned file and removing all results of `-ComputerName localhost`.\r\nAnd now Docker starts successfully.\r\n\r\n### Steps to reproduce the behavior\r\n(on my machine, no idea what is so special about it)\r\n  1. Open PowerShell\r\n  2. Run command `Hyper-V\\Get-VMHost -ComputerName localhost`\r\n  3. Also try running command `Hyper-V\\Get-VMHost` which will work\r\n"},"comment":{"url":"https://api.github.com/repos/docker/for-win/issues/comments/375437666","html_url":"https://github.com/docker/for-win/issues/1077#issuecomment-375437666","issue_url":"https://api.github.com/repos/docker/for-win/issues/1077","id":375437666,"user":{"login":"kanczler","id":10741665,"avatar_url":"https://avatars3.githubusercontent.com/u/10741665?v=4","gravatar_id":"","url":"https://api.github.com/users/kanczler","html_url":"https://github.com/kanczler","followers_url":"https://api.github.com/users/kanczler/followers","following_url":"https://api.github.com/users/kanczler/following{/other_user}","gists_url":"https://api.github.com/users/kanczler/gists{/gist_id}","starred_url":"https://api.github.com/users/kanczler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanczler/subscriptions","organizations_url":"https://api.github.com/users/kanczler/orgs","repos_url":"https://api.github.com/users/kanczler/repos","events_url":"https://api.github.com/users/kanczler/events{/privacy}","received_events_url":"https://api.github.com/users/kanczler/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T19:57:35Z","updated_at":"2018-03-22T19:57:35Z","author_association":"NONE","body":"> So I solved my issue by removing the -ComputerName localhost part everytime localhost is used\r\nThis worked for me, thanks!"}}
{"actor":{"display_login":"kanczler"}}