Docker image for iis on windows 11 gives error access denied

Hi !

I am trying to pull following image on my windows 11 Pro laptop
Microsoft Artifact Registry

My setup :
OS = Windows 11 Enterprise 23 H2
Docker desktop for Windows = v 4.33.1
Running docker as windows container
Docker container directory set to C:\DockerData by setting “data-root”

Environment setup before running build :

  1. Run docker desktop in admin mode
  2. Run the powershell to run docker build in admin mode
  3. Disable the firewall
  4. Set the c:\Program files\Docker , c:\DockerData folders in Virus protection exclusion list
  5. Given the full privileges on all the needed directories to “Everyone”

Docker build command :
docker build --tag iisbase-20h2:0.0.0.1 --build-arg BUILD=20H2 .

I get following error and have not found any solution on any forum yet.

failed to register layer: re-exec error: exit status 1: output: link \?\C:\DockerData\windowsfilter\a3b9869b83edaec389241f3103e865d5f3a9a19316de8e06d8f7fdc89c078693\Files\Program Files\Windows NT\Accessories\wordpad.exe \?\C:\DockerData\windowsfilter\a3b9869b83edaec389241f3103e865d5f3a9a19316de8e06d8f7fdc89c078693\Files\Windows\WinSxS\amd64_microsoft-windows-wordpad_31bf3856ad364e35_10.0.19041.488_none_0b8a7f31cbd37483\wordpad.exe: Access is denied.

Processing: image.png…