docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.87k stars 290 forks source link

Install on Windows 11 Pro fails on ProgramData permission #14136

Closed DanRoller closed 3 months ago

DanRoller commented 5 months ago

Description

First install on Windows 11 Pro. C:\Users\dan00\Downloads>"Docker Desktop Installer.exe" install

C:\Users\dan00\Downloads>-------------------------------------------------------------------------------->8 Version: 4.30.0 (149282) Sha1: Started on: 2024/06/13 22:26:09.735 Resources: C:\Users\dan00\Downloads\resources OS: Windows 10 Pro Edition: Professional Id: 2009 Build: 22631 BuildLabName: 22621.1.amd64fre.ni_release.220506-1250 File: C:\Users\dan00\AppData\Local\Docker\install-log.txt CommandLine: "Docker Desktop Installer.exe" install You can send feedback, including this log file, at https://github.com/docker/for-win/issues [2024-06-13T22:26:09.986198200Z][ManifestAndExistingInstallationLoader][I] No install path specified, looking for default installation registry key [2024-06-13T22:26:09.986198200Z][Installer][I] No installation found [2024-06-13T22:26:10.001826600Z][ManifestAndExistingInstallationLoader][I] Not run as admin, relaunching with UAC prompt System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\DockerDesktop' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) at Docker.Core.PermissionUtils.RemoveGlobalWrite(ILogger logger, String path) in C:\workspaces\main-merges\src\github.com\docker\pinata\win\src\Docker.Core\PermissionUtils.cs:line 45 at Docker.Installer.Program.Main(String[] args)Access to the path 'C:\ProgramData\DockerDesktop' is denied.

Reproduce

(1) C:\Users\dan00\Downloads>"Docker Desktop Installer.exe" install (2) Give permission to update Windows (3) Crash

Expected behavior

Expect to see installation proceed.

docker version

didn't get that far

docker info

Didn't get that far

Diagnostics ID

?

Additional Info

Version: 4.30.0 (149282)

voonyee commented 5 months ago

hi, Thanks for reporting, looking at the error message you shared. System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\DockerDesktop' is denied.

Are you running that as the machine admin? If your admin account is different from your user account, you must add the user to the docker-users group, see the below doc:
https://docs.docker.com/desktop/install/windows-install/#install-docker-desktop-on-windows

DanRoller commented 5 months ago

After trying to install, from my admin userid, I retried the install with an Administrator command, it fails with the same sort of problem. I tried to create the C:\ProgramData\DockerDesktop from the Admin command, and that failed as shown below. I'll try to tinker with the permissions of the C:\ProgramData folder.

:\Users\dan00\Downloads>"Docker Desktop Installer.exe" install

C:\Users\dan00\Downloads>System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\DockerDesktop' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) at Docker.Core.PermissionUtils.RemoveGlobalWrite(ILogger logger, String path) in C:\workspaces\main-merges\src\github.com\docker\pinata\win\src\Docker.Core\PermissionUtils.cs:line 45 at Docker.Installer.Program.Main(String[] args) C:\Users\dan00\Downloads>mkdir C:\ProgramData\DockerDesktop Access is denied.

DanRoller commented 5 months ago

I've tried rerunning this with elevated permissions in CMD as well as a Windows Power Script and looked a permissions issue in the c:\ProgramData folder. Used icacls C:\ProgramData /reset to reset permissions. In looking into permissions, I've chased "incorrectly ordered permissions", Group or user name of "NULL SID", or Account Unknown(S-1-15- etc.).

But I'm no closer. Installation isnt't working.

I did spend lots of time a month ago with Microsoft and Apple just to install iCloud. Eventually, Apple, said skip the windows store and the first list on the iCloud page, and use second link to an alternate install that worked.

DanRoller commented 3 months ago

Resolved this problem and others by doing a clean install of windows 11.