docker-ci-zap
docker-ci-zap copied to clipboard
Erroneous error: The process cannot access the file because it is being used by another process
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
You might have to exit all your windows, folders, consoles, etc.
I had to stop the Docker service to be able to clean-up my folder
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:
