docker-ci-zap icon indicating copy to clipboard operation
docker-ci-zap copied to clipboard

Erroneous error: The process cannot access the file because it is being used by another process

Open mrichman opened this issue 8 years ago • 3 comments
trafficstars

I do not have dockerd running.

PS C:\ProgramData\docker> C:\Users\mrichman\Downloads\docker-ci-zap.exe -folder "C:\ProgramData\docker"

time="2017-08-14T12:41:42-04:00" level=error msg="hcsshim::DestroyLayer - Win32 API call returned error r1=0x80070020 err=The process cannot access the file because it is being used by another process.id=docker flavour=0"
ERROR:  hcsshim::DestroyLayer - Win32 API call returned error r1=0x80070020 err=The process cannot access the file because it is being used by another process.id=docker flavour=0

mrichman avatar Aug 14 '17 16:08 mrichman

You might have to exit all your windows, folders, consoles, etc.

frankfuu avatar Feb 27 '18 07:02 frankfuu

I had to stop the Docker service to be able to clean-up my folder

Corbeau3000 avatar Oct 07 '18 17:10 Corbeau3000

I heard (and it makes sense) that you can switch to the Linux containers, run the tool, than switch back to Windows Containers.

It also may help in some cleanup cycling fashion.

EDIT:

I use Docker Desktop in the following manner to do that:

image

brcaswell avatar Mar 02 '20 23:03 brcaswell