Sandip Ghosh
Sandip Ghosh

Reputation: 71

Unable to install docker for windows

I am trying to install docker for windows in my PC, but unable to do that. The installation getting stuck at "Removing Files.." stage.

I am running the following commands in PowerShell to get the information of my OS

This picture showing virtualization is enabled in my machine

This picture showing Hyper-V service is also enabled

This picture is showing the installer has been stuck at "Removing Files.." stage.

A little help will be highly appreciated.

Upvotes: 7

Views: 7865

Answers (4)

Muhammad Sufyan
Muhammad Sufyan

Reputation: 1

If Docker is not installing on our pc, first update your pc and then try command to install Docker on your pc , I am sure that it will work. It is because of your OS Build number is small as compared to number for installing Docker. So by updating your pc , Build number will automatically increase. Before updating your pc, check your Build number by gong on Winver,and after updating your pc check your Build number.

Upvotes: -2

Alex Howez
Alex Howez

Reputation: 62

Besides the other answer, I've seen people suggest a computer restart, running the installer as administrator and disabling the antivirus as well.

Upvotes: 0

curious.netter
curious.netter

Reputation: 814

I had the same issue, btw, I was installing Docker for the first time on my Win 10 pro machine. The culprit was

Controlled folder access

Windows new feature Controlled Folder Access for Ransomware protection was turned on and which was not allowing docker to create a short cut on desktop. After turning Controlled folder access 'off', I was able to install the docker. I think by unchecking 'create desktop shortcut' while installing docker should cause no problem as well, however, I have not tried it.

Upvotes: 1

JGlass
JGlass

Reputation: 1467

Finally - I was able to upgrade - and I believe this was/is related to all of your issues as well. Basically I had docker working. After a couple months of seeing the upgrade docker pop-up, I clicked it. It broke the installation and with great pain I was able to roll back and install the original version I had. I then foolishly went to upgrade docker again as I was having an issue with some images not working properly - doh, broke the docker again. I tried reinstalling three times and it would always get stuck at removing files. Googling around, someone mentioned are the files actually there. They were indeed there in C:\Program Files\Docker\Docker so I tried to run docker manually, it runs but shows red in system tray and states "Backend service is not installed".

I tried to find out how to install the Backend Service but that didnt work. I tried to install a couple more times, still no luck so what I believe fixed everything is: 1. Delete the Docker directory, if you get an error that some process is still using something in that directory make sure you dont have any other folder or files open within that directory. Make sure docker is stopped, e.g. right click the icon in the system tray and select quit docker. 2. After deletion - simply reinstall Docker.

Warning - this will definitely cause you to likely lose some of your settings so if anyone would like to comment as to which files might be backed up prior please fell free to do so!

Hopefully this might help others out.

Upvotes: 6

Related Questions