Docker desktop not installing on Win 11 64-bit system - Attempted to perform an unauthorized operation

I have tried installing both from cmd as well as the installer GUI bit I keep getting the following error in the logs


"Docker Desktop Installer.exe"  install --installation-dir="C:\Users\xx\Documents\Docker"

C:\Users\xx\Software Installers>System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
   at System.Security.AccessControl.Win32.GetSecurityInfo(ResourceType resourceType, String name, SafeHandle handle, AccessControlSections accessControlSections, RawSecurityDescriptor& resultSd)
   at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
   at System.Security.AccessControl.FileSystemSecurity..ctor(Boolean isContainer, String name, AccessControlSections includeSections, Boolean isDirectory)
   at System.Security.AccessControl.DirectorySecurity..ctor(String name, AccessControlSections includeSections)
   at System.IO.DirectoryInfo.GetAccessControl()
   at Docker.Core.PermissionUtils.RemoveGlobalWrite(ILogger logger, String path) in C:\workspaces\PR-29624\src\github.com\docker\pinata\win\src\Docker.Core\PermissionUtils.cs:line 47
   at Docker.Installer.Program.Main(String[] args)

image

I have admin privileges and have disabled Hyper-V

Can anyone give me pointers to resolve this issue?

Thanks in advance.

How did you install Docker Desktop? I don’t remember I saw such a path in the error message that refers to github. Which version did you try and where did you download the installer?

I tried bith GUI and cmd line - “Docker Desktop Installer.exe” install --installation-dir=“C:\Users\xxx\Documents\Docker”

with versions 4.19 and 4.33 docker installer

the OS is Windows 11 Pro version 23H2 and build 22631.4169

Please, answer the above question as well

Are you sure the requirements are met?

https://docs.docker.com/desktop/install/windows-install/#system-requirements

Especially the virtualization enabled

https://docs.docker.com/desktop/troubleshoot/topics/#virtualization

Do you have any security software installed on Windows? It doesn’t look like something caused by an antivirus, but if you are administrator and if the error is about accessing a directory, something must have blocked the request.

A post was split to a new topic: Hardware virtualization requirements to use HyperV or WSL2