Windows 10 Enterprise中的docker桌面显示错误

时间:2019-07-11 11:40:11

标签: docker docker-machine docker-desktop

每当我启动docker桌面并且不知道如何处理时,我都会出错。

我尝试重新安装,但是发生了同样的事情。

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Generic failure 
at New-Switch, <No file>: line 121
at <ScriptBlock>, <No file>: line 411
   at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeClient.cs:line 36
   at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 92
   at Docker.Actions.<>c__DisplayClass19_0.<Start>b__0() in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 74
   at Docker.WPF.TaskQueue.<>c__DisplayClass19_0.<.ctor>b__1() in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.WPF\TaskQueue.cs:line 59

还有以下错误,

The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx' is not an existing virtual hard disk file.
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at Docker.Core.PowerShell.Output(String script, Boolean verbose) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Core\PowerShell.cs:line 110
at Docker.Backend.ContainerEngine.Linux.TryResizeMobyVhdx(String physicalPath, Int64 newSize) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Linux.cs:line 488
at Docker.Backend.BackendServer.b__6_14(Object[] args) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Backend\BackendServer.cs:line 56
at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeServer.cs:line 180

2 个答案:

答案 0 :(得分:0)

最新的Windows更新弄乱了我的hyper-v配置

此问题已通过以下方式解决。

  • 卸载docker桌面
  • 卸载容器,Hyper-V Windows功能。
  • 删除.Docker文件,Windows文件中的Hyper-V文件夹。
  • 重新安装容器,Hyper-V Windows功能。
  • 再次安装Docker-desktop。
  • 重新启动PC。

就这样。

答案 1 :(得分:0)

就我而言,我必须在C:\Windows\System32\Drivers\etc\hosts的Windows主机文件中删除与Docker主机和网关的错误IP映射,然后重新启动Docker。