Docker.For.Win – Install fails on installationmanifest.json

问题描述

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()

解决办法

  1. Kill the installer process if it’s still running.
  2. Run Regedit.
  3. Run a quick backup of the registry by selecting File > Export (It is recommended that you set the export range to All.)
  4. Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
  5. If there is a Docker for Windows entry, delete key and all subkeys.
  6. 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恢复到最初的状态,然后可以重新安装或升级。

评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注