问题描述
Docker升级出现 Installation Failed:
Text from error:
Installing Docker for Windows
Docker for Windows
Installation failed
x
17.06.O-rc2-ce-win14
Could not find file 'C:\Program Files\Docker\Docker\installationmanifest.json'.
at System.lO._Error.WinlOError(lnt32 errorCode, String maybeFullPath)
at System.lO.FileStream.lnit(String path, FileMode mode, FileAccess access, Int32 rights, Boolean
useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.lO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32
bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean
checkHost)
at System.lO.StreamReader..ctor(String path, Encoding encoding, Boolean
detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.lO.File.lnternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at Lightweightlnstaller.UninstallWorkflow.<ProcessAsync>d_7.MoveNext()
End of stack trace from previous location where exception was thrown
at System. Runtime. ExceptionServices. Exception Dispatchl nfo. Throw()
解决办法
- Kill the installer process if it’s still running.
- Run Regedit.
- Run a quick backup of the registry by selecting File > Export (It is recommended that you set the export range to All.)
- Navigate to
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
- If there is a
Docker for Windows
entry, delete key and all subkeys. - Relaunch the installer, and you should no longer be prompted to update. The installer should proceed as a fresh install from this point.
- 运
1、关闭所有的安装进程
2、运行注册表(WIN+r), 在运行中输入:regedit
3、打开注册表 Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
4、找到 Docker for Windows
5、将右侧的支点全部删除。
可以将Docker恢复到最初的状态,然后可以重新安装或升级。