Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

  • Get-WmiObject -Class Win32_OperatingSystem | % Caption

    Microsoft Windows 10 Pro

  • Get-WmiObject -Class Win32_OperatingSystem | % Buildnumber

    15063

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.

like image 411
Sandip Ghosh Avatar asked Dec 12 '17 11:12

Sandip Ghosh


People also ask

Why is Docker not working Windows 10?

If virtualization is disabled Docker Desktop cannot start. If the virtualization is disabled in your machine then you need to enable it from BIOS Settings. Note that Windows 10 Home edition doesn't support Hyper-V feature only Windows 10 Enterprise, Pro, or Education support it.

Can I install Docker on Windows 11?

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.

Does Docker not work with Windows 10 home?

Docker only supports Docker Desktop on Windows for those versions of Windows 10 that are still within Microsoft's servicing timeline. Containers and images created with Docker Desktop are shared between all user accounts on machines where it is installed.


1 Answers

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.

like image 70
JGlass Avatar answered Oct 02 '22 11:10

JGlass