Basileus
Basileus

Reputation: 379

Docker Installation process can't complete due to file being in use elsewhere

While trying to reinstall Docker for Windows, I am facing the following error -

The process cannot access the file 'C:\Program Files\Docker\Docker\resources\docker-for-win.iso' because it is being used by another process.

Is there any resolution to this issue?

Upvotes: 21

Views: 20797

Answers (8)

OBENG BISMARK
OBENG BISMARK

Reputation: 1

The solution is Task Manager > Services, find the running docker processor, stop it and then reinstall the docker package.

Upvotes: 0

Kishore Bisht
Kishore Bisht

Reputation: 9

Stop the docker service on windows. It worked for me

Upvotes: 0

Nguyen Duc Tien
Nguyen Duc Tien

Reputation: 290

My way is:

  1. open Task Manager
  2. Select tab Details
  3. Click to the title of the table. Click mouse right to open context menu. Select select columns
  4. Select to show the command line column
  5. Search the process occupied that file
  6. Kill the process It's okay with me. enter image description here

Upvotes: 29

Sharnam Khurana
Sharnam Khurana

Reputation: 101

Running the executable with Admin privileges solved the problem for me.

Upvotes: 0

user16107254
user16107254

Reputation: 1

Guys I ran into same issue and I solved by disabling it from my task manager. For that open Task Manager(Ctrl+Shift+ESC) the go to services tab select open services find docker desktop service from it right click and select properties . change startup type to disable and press apply now u can delete docker folder from program files and reinstall docker .

Upvotes: 0

Akshay Kumar Sharma
Akshay Kumar Sharma

Reputation: 291

There could be a service running with display name "Docker Desktop Service". You need to stop it.

Upvotes: 2

Jevgenij Kononov
Jevgenij Kononov

Reputation: 1237

enter image description here

I had the same problem. Have tried a lot of things. Thing which really helped me was this: Go to resource manager. CPU TAB. Associated handlers section. Search. Write docker. Find all files which holds your resource file and stop that process with right click. Process which holds your docker file. After start again installation... :) My installation result enter image description here

Upvotes: 8

Sumit Rane
Sumit Rane

Reputation: 741

Open Hyper-V Manager => select your system name => select DockerDesktop VM under Virtual Machines => then click on Remove Server => Then restart your system.

Your ready to setup docker.

enter image description here

Upvotes: 14

Related Questions