【问题标题】:docker desktop in Windows 10 Enterprise showing errorsWindows 10 Enterprise 中的 docker 桌面显示错误
【发布时间】:2019-11-21 02:56:48
【问题描述】:

每当我启动 docker desktop 并且不知道如何处理时,我都会遇到错误。

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

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

【问题讨论】:

    标签: docker docker-machine docker-desktop


    【解决方案1】:

    最新的 windows 更新搞砸了我的 hyper-v 配置

    问题通过以下方式解决。

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

    就是这样。

    【讨论】:

    • 对此的更新是首先在 Windows 功能上禁用 Container 和 Hyper-V,然后重新启动 pc。然后重新启用,重启电脑
    【解决方案2】:

    在我的情况下,我必须在C:\Windows\System32\Drivers\etc\hosts 的 Windows 主机文件中删除与 Docker 主机和网关的不正确 IP 映射,然后重新启动 Docker。

    【讨论】:

      猜你喜欢
      • 2020-08-31
      • 2022-01-05
      • 2022-11-13
      • 2017-07-18
      • 2020-06-10
      • 1970-01-01
      • 1970-01-01
      • 2023-01-16
      • 2021-11-15
      相关资源
      最近更新 更多