Рабочий стол Docker 4.1.0 — Сбой установки в Windows 10: Процесс InstallerCli.exe вышел с кодом 1

#docker

Вопрос:

Я попытался установить рабочий стол Docker 4.1.0 в Windows 10. Я следовал инструкции по установке из официальных документов

  • Hyper-V включен
  • Установлен WLS-2

И я получаю следующую ошибку: введите описание изображения здесь

 Installation Failed
Component CommunityInstaller.ExecAction failed: Process InstallerCli.exe exited with code 1
   at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__24.MoveNext() (
 

Журнал установки %LocalAppData%Dockerinstall-log.11.txt :

 Started on: 2021-10-08 16:18:00.362
File: C:UsersAdminAppDataLocalDockerinstall-log.txt
CommandLine: "D:TempDocker Desktop Installer.exe" 
[16:18:00.466][ManifestAndExistingInstallationLoader] No install path specified, looking for default installation registry key
[16:18:00.467][Program] No installation found
[16:18:00.569][InstallWorkflow] Cancel pending background download
[16:18:04.848][InstallWorkflow] Using package: res:DockerDesktop
[16:18:04.863][InstallWorkflow] Downloading
[16:18:08.038][InstallWorkflow] Extracting manifest
[16:18:09.562][InstallWorkflow] Manifest found: version=69386, displayVersion=4.1.0, channelUrl=https://desktop.docker.com/win/main/amd64/appcast.xml
[16:18:09.562][InstallWorkflow] Checking prerequisites
[16:18:10.089][InstallWorkflow] Prompting for optional features
[16:18:16.478][InstallWorkflow] Unpacking artifacts
[16:20:37.590][InstallWorkflow] Deploying component CommunityInstaller.CreateGroupAction
[16:20:51.267][InstallWorkflow] Deploying component CommunityInstaller.AddToGroupAction
[16:21:00.357][InstallWorkflow] Deploying component CommunityInstaller.EnableFeaturesAction
[16:21:01.235][InstallWorkflow] Deploying component CommunityInstaller.ServiceAction
[16:21:01.238][InstallWorkflow-ServiceAction] Removing service
[16:21:01.240][InstallWorkflow-ServiceAction] Creating service
[16:21:02.868][InstallWorkflow] Deploying component CommunityInstaller.ShortcutAction
[16:21:02.885][InstallWorkflow-ShortcutAction] Creating shortcut: D:ProgramDataMicrosoftWindowsStart MenuDocker Desktop.lnk/Docker Desktop
[16:21:02.891][InstallWorkflow] Deploying component CommunityInstaller.ShortcutAction
[16:21:02.893][InstallWorkflow-ShortcutAction] Creating shortcut: C:UsersAdminDesktopDocker Desktop.lnk/Docker Desktop
[16:21:02.894][InstallWorkflow] Deploying component CommunityInstaller.AutoStartAction
[16:21:02.896][InstallWorkflow] Deploying component CommunityInstaller.PathAction
[16:21:03.196][InstallWorkflow] Deploying component CommunityInstaller.PathAction
[16:21:03.360][InstallWorkflow] Deploying component CommunityInstaller.ExecAction
 

Журнал установки 2 %LocalAppData%Dockerinstall-log.txt :

 Version: 4.1.0 (69386)
Sha1: 05eb8751ac40e465ab6691a9d6db535252f63c0d
Started on: 2021-10-08 16:21:03.710
Resources: D:Program FilesDockerDockerresources
OS: Windows 10 Pro
Edition: Professional
Id: 2009
Build: 19042
BuildLabName: 19041.1.amd64fre.vb_release.191206-1406
File: C:UsersAdminAppDataLocalDockerinstall-log.txt
CommandLine: "D:Program FilesDockerDockerInstallerCli.exe" -i
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[16:21:03.883][Installer         ][Info   ] Preparing upgrade...
[16:21:03.906][HyperV            ][Info   ] Destroy
[16:21:04.488][LinuxWSL2Engine   ][Info   ] Destroying distro
[16:21:04.651][Installer         ][Info   ] Prepare upgrade completed successfully
[16:21:04.652][Installer         ][Info   ] Fixing permissions...
[16:21:04.653][Installer         ][Info   ] Deleting directory D:Program FilesDockercli-plugins
[16:21:04.657][Installer         ][Info   ] removing permission inheritance from D:ProgramDataDockerDesktop
[16:21:04.658][Installer         ][Info   ] removing ACLs except for SYSTEM and Administrators from D:ProgramDataDockerDesktop
[16:21:04.658][Installer         ][Info   ] granting ReadAndExecute to everyone for D:ProgramDataDockerDesktop
[16:21:04.659][Installer         ][Info   ] removing permission inheritance from D:Program FilesDockercli-plugins
[16:21:04.659][Installer         ][Info   ] removing ACLs except for SYSTEM and Administrators from D:Program FilesDockercli-plugins
[16:21:04.660][Installer         ][Info   ] granting ReadAndExecute to everyone for D:Program FilesDockercli-plugins
[16:21:04.660][Installer         ][Info   ] removing permission inheritance from D:ProgramDataDocker
[16:21:04.660][Installer         ][Info   ] removing ACLs except for SYSTEM and Administrators from D:ProgramDataDocker
[16:21:04.663][Installer         ][Error  ] Access to the path 'D:ProgramDataDockerconfig' is denied.
[16:21:04.722][InstallWorkflow] Installation failed
Exception type: System.Exception, Exception message: Component CommunityInstaller.ExecAction failed: Process InstallerCli.exe exited with code 1, StackTrace:
   at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__24.MoveNext()
[16:21:04.724][InstallWorkflow] Rollbacking component CommunityInstaller.PathAction
[16:21:04.919][InstallWorkflow] Rollbacking component CommunityInstaller.PathAction
[16:21:05.106][InstallWorkflow] Rollbacking component CommunityInstaller.AutoStartAction
[16:21:05.109][InstallWorkflow] Rollbacking component CommunityInstaller.ShortcutAction
[16:21:05.110][InstallWorkflow] Rollbacking component CommunityInstaller.ShortcutAction
[16:21:05.111][InstallWorkflow] Rollbacking component CommunityInstaller.ServiceAction
[16:21:06.121][InstallWorkflow] Rollbacking component CommunityInstaller.EnableFeaturesAction
[16:21:06.122][InstallWorkflow] Rollbacking component CommunityInstaller.AddToGroupAction
[16:21:06.123][InstallWorkflow] Rollbacking component CommunityInstaller.CreateGroupAction
[16:21:06.123][InstallWorkflow] Rollbacking component CommunityInstaller.UnpackArtifactsStep
[16:21:06.137][FileSystem] Deleting D:Program FilesDockerDocker
[16:21:06.333][FileSystem] Deleted D:Program FilesDockerDocker successfully
[16:21:06.333][InstallWorkflow] Rollbacking component CommunityInstaller.ExtractManifestStep
[16:21:06.334][InstallWorkflow] Rollbacking component CommunityInstaller.DownloadStep
 

Я также попытался пропустить установку компонентов WSL2 и получил ту же ошибку

ОБНОВЛЕНИЕ: Я вижу, что он пытался изменить разрешения для этой папки: D:ProgramDataDocker . Но он мог только удалить все разрешения:

 removing ACLs except for SYSTEM and Administrators from D:ProgramDataDocker
Access to the path 'D:ProgramDataDockerconfig' is denied.
 

В чем может быть проблема?

Ответ №1:

Я решил эту проблему. Я только что добавил права СИСТЕМЫ и администраторов в D:ProgramDataDocker папка вручную.