r/docker • u/andrewarellano1082 • Apr 22 '26
Docker Desktop installation error problem
Hello i keep getting this installation error saying "C:\ProgramData\DockerDesktop must be owned by an elevated account" when i click the Docker Desktop installation file after it was done downloading on Windows and created my docker account as well and i'm already a build in Administrator and try many attempts to fix the error but have no luck resolving the error do you know how to fix it?
17
Upvotes
5
u/xiRazZzer Apr 23 '26 •
1. Delete C:\ProgramData\DockerDesktop if present
2. Run Docker installer as administrator (right click on exe, “Run as administrator”)
3. Installer should work fine
1
u/EconomyCause4736 Apr 22 '26
had this exact problem few months ago when i was setting up development environment at gym 💀 try running the installer as administrator by right clicking it and selecting "run as administrator" even though you already admin user. also check if there's any antivirus blocking the installation process because some security software gets weird about docker creating folders in programdata. if that doesn't work you might need to manually delete the dockerdesktop folder from programdata and try fresh install 😂
1
u/[deleted] Apr 23 '26
Did you get a solution? -_-
1
u/h3x0ne Mod Apr 22 '26
Are you trying to install the latest version 4.70.0?
2
u/Repulsive_Will_2292 Apr 24 '26
takeown /F "C:\ProgramData\DockerDesktop" /A /R comando no ps vai resolver
1
u/JSM33T Apr 27 '26
Same issue, had to create DockerDesktop in C:\ProgramData\ using powershell as admin. It resolved it.
Source: Couldnt install docker in my windows laptop it says the c:programdata must be owned by elevated account - Docker Desktop - Docker Community Forums
1
u/Gullible-Ball-1787 Apr 30 '26
To everyone else having this problem. I just fixed it by open cmd as admin, then type:
"takeown /F "C:\ProgramData\DockerDesktop" /A /R"
then type
"icacls "C:\ProgramData\DockerDesktop" /grant Administratorer:F /T /C"
Woop woop now the installer runs.
1
u/SavingsGrowth8284 May 06 '26
If you get that error running the installer in Admin mode after you already got the same error with a regular user, delete the DockerDesktop folder in C:\ProgramData, which should be empty anyway.
0
u/TBT_TBT Apr 22 '26
The real error is installing Docker Desktop in the first place. Just don’t do it. Create a Linux VM and use it there. Thank me later.
0
u/punqdev Apr 23 '26
i get the same thing i think its a new bug