1
我剛升級到Windows 10 Pro創建者更新| 1703 | OS版本:15063.138。Docker for windows無法啓動
當搬運工試圖啓動我得到以下錯誤:
Unable to create: You cannot call a method on a null-valued expression.
at <ScriptBlock>, <No file>: line 137
at Get-NetAdapter<End>, <No file>: line 181
at New-Switch, <No file>: line 137
at <ScriptBlock>, <No file>: line 381
at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters)
at Docker.Backend.ContainerEngine.Linux.Start(Settings settings)
at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.<Register>b__0(Object[] parameters)
at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)
現在,我已經嘗試了所有常見故障排除方法來嘗試解決它,但有沒有運氣即卸載碼頭工人reninstall,關閉超-V然後再打開它。
我甚至試過C:\Program Files\Docker\Docker\resources
.\MobyLinux.ps1 -Destroy
.\MobyLinux.ps1 -Create
運行使用PowerShell下面的命令創建任務引發以下錯誤:
? : You cannot call a method on a null-valued expression.
At C:\Program Files\Docker\Docker\resources\MobyLinux.ps1:137 char:37
+ ... Get-NetAdapter | ? { $_.Name.StartsWith("vEthernet ($SwitchName)") }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Where-Object], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull,Microsoft.PowerShell.Commands.WhereObjectCommand
任何想法如何解決這一問題?
你可以檢查'Get-NetAdapter'的輸出嗎? (未過濾)。我不知道任何情況下'$ _。Name'可能是'$ null' ... – Clijsters