Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pull Image with Docker on Windows 10 : "failed to register layer ....Denied Access"

Tags:

docker

I'm trying to create docker containers in a Windows 10, but it always gives me the following

"failed to register layer: rename C: ....."

I can not find any thread to explain it, I´ve executed PS as a Administrator

I put the trace of the pull:

PS C:\WINDOWS\system32> docker pull microsoft/aspnet
Using default tag: latest
latest: Pulling from microsoft/aspnet

9c7f9c7d9bc2: Pull complete
d33fff6043a1: Pull complete
b7c3bbe47489: Extracting [==================================================>] 123.8 MB/123.8 MB
1028e286eae2: Download complete
28e6f26ee039: Download complete
a0db4e322336: Download complete
failed to register layer: rename C:\ProgramData\Docker\image\windowsfilter\layerdb\tmp\write-set-255580435 C:\ProgramDat
a\Docker\image\windowsfilter\layerdb\sha256\b01351fac2d37b162190ef8dde977bbf009d8e3fa2446dd71595b142b73d28a3: Denied Access

Someone knows what´s the reason?

Thanks in advance.

like image 919
Héctor Fernández Avatar asked Dec 12 '16 15:12

Héctor Fernández


People also ask

Why is Docker not working Windows 10?

Operating SystemIf you do not run a 64-bit version of Windows Windows 10 Pro, Enterprise, or Education; 1511 November update, Build 10586 or later, you cannot run Docker for Windows. You can install Docker Toolbox if you have a 64-bit version of Windows 7 or later.

Does Docker work on Windows 10 enterprise?

You can install Docker on Windows 10 or 11 Professional and Enterprise editions by using the following steps. Download and install Docker Desktop and create a Docker account if you don't already have one.


1 Answers

OK I have been struggling with this little devil for a while now. I have windows containers working on my desktop, but on my new laptop it was giving me a hard time. I have changed permissions on all the C:\ProgramData\Docker folder at the beginning, to no avail. After a while I realized that there IS a difference between my desktop and the new laptop was the fact that the laptop came preinstalled with McAfee Antivirus. Now I'm not sure if it's a mcafee only issue, or in general antivirus, but when I disabled realtime scanning for a bit, I was able to download the new image without issues.

like image 181
Max v. Steiger Avatar answered Oct 18 '22 18:10

Max v. Steiger