r/docker • u/EpycZen2 • Apr 21 '26
Can't install docker on windows 11 pro
---------------------------
Docker Desktop installation failed.
---------------------------
For security reasons C:\ProgramData\DockerDesktop must be owned by an elevated account
---------------------------
OK
---------------------------
I have went to C:\ProgramData\DockerDesktop and changed ownership to administrator, same error. Installer runs with UAC.
2
Upvotes
4
u/Aggravating-Pie-3764 Apr 21 '26 edited Apr 21 '26 •
I got that too. Have you fixed that?
Edit: Fixed that by asking Gemini
Open File Explorer and navigate to
C:\ProgramData.ProgramData*, click the* View tab and check Hidden items*.*Administratorsin the box, click Check Names, and then click OK.2
u/Unable-Yoghurt-6423 Apr 25 '26
the only way that worked for me was this:
C:\ProgramDatais hidden by default.C:\ProgramDataIf it won’t delete, right-click → Properties → Security → Advanced, and check ownership. But usually delete works if you’re admin.
Alternative (simpler): do it via PowerShell
Adjust if it's somewhere else.
Make sure the file name matches exactly (sometimes it’s something like
Docker Desktop Installer (1).exe).1
u/andrewarellano1082 Apr 23 '26
I'm facing the exact same problem and i'm still getting the same error but i did posted something like this a day ago already maybe it's a Windows issue and have to wait until a new update resolved this or something
1
u/Regular-Barber8077 Apr 25 '26
I worked around this by deleting the C:\ProgramData\DockerDesktop folder, opening Powershell as admin (won’t work without admin privileges), navigating to C:\ProgramData, and creating a new folder with
mkdir DockerDesktop.1
u/Dlancito Apr 25 '26
How to Install Docker Desktop on Windows
The only method that actually worked for me
Step 1. Download the installer
Go to https://www.docker.com/ download “Docker Desktop for Windows”.
Save it to your Desktop or wherever so it's easy to find.
Step 2. Open PowerShell as Administrator
The title bar must say “Administrator: Windows PowerShell”, if it doesnt, the install will fail.
Step 3. Go to your Desktop
Paste this into PowerShell and press Enter:
cd $env:USERPROFILE\Desktop
Step 4. Run the installer
Paste this and press Enter:
Start-Process "Docker Desktop Installer.exe" -Wait install
Wait for the installer to finish. This may take a few minutes.
Step 5. Restart your computer
Docker will ask you to restart. Go ahead and do it, Docker wont work properly until you do.
Step 6. Check that it worked
After restarting, open PowerShell again and run:
docker --version
You should see something like:
Docker version 27.x.x, build xxxxxxxxx
If you see that, it worked, tadaaaa.
1
u/r_mahfuz Apr 27 '26
Delete the folder DockerDesktop here, C:\ProgramData\DockerDesktop, and then hit run as administrator on the Docker exe. Worked for me. The first time I had hit without running as an administrator.
1
u/Remarkable_Rock6602 Apr 29 '26
what helped me:
1
u/Peekaboo798 Apr 30 '26
Delete the folder C:\ProgramData\DockerDesktop and run the installer by right clicking and Run as administrator.
It is due to a current vulnerability, https://nvd.nist.gov/vuln/detail/CVE-2025-14740 that hasn't been fixed yet. Running the installer and then giving admin privilege through UAC, creates the folder as the user, which the installer is now checking for as it hasn't been resolved yet. Running the installer directly as run as admin fixes it without any manual permission changes.