I am getting below error When I try to install Docker on Windows 10 Home Edition.
[21:20:49.129] [InstallWorkflow] Pre-requisite failed: Docker for Windows requires Windows 10 Pro or Enterprise version 14393, or Windows server 2016 RTM to run
Can I Install Docker on Windows 10 Home Edition?
Edit Windows Version in Registry
Press Windows + R and write regedit
In the Registry Editor, go to \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
Right-click on EditionID and Click Modify
Change Value Data to "Professional"
Press OK.
Install Docker
After the installation, you can change the EditionID back to "Core"
As the error says, you cannot use Docker in the Home edition. You need "Windows 10 Pro or Enterprise version 14393, or Windows server 2016 RTM."
Check out their documentation here, which mentions, on 04/05/2018:
The current version of Docker for Windows runs on 64bit Windows 10
Pro, Enterprise and Education (1607 Anniversary Update, Build 14393 or
later).
As already mentioned in the comments, you might want to try the legacy Docker Toolbox:
Docker Toolbox is for older Mac and Windows systems that do not meet
the requirements of Docker for Mac and Docker for Windows.
Docker for Windows requires Hyper-V which is not included in Home edition.
You'll need to upgrade Windows to the Education or Pro edition.
https://docs.docker.com/docker-for-windows/install/#what-to-know-before-you-install
Also see this comment on GitHub.
You can already install Docker Desktop on Windows 10 Home.
This is how I did it:
You need to join Windows Insiders Program because you need WSL 2
You need to download the specific version of Docker Desktop: https://download-stage.docker.com/win/edge/41944/Docker%20Desktop%20Installer.exe which has a required change - allows install it on Windows 10 Home.
Those who have Windows Home Edition can now download and install Docker Desktop from below link.
https://docs.docker.com/docker-for-windows/install-windows-home/
Although not on Win10 Home per se, for evaluation purposes you can install Docker Desktop on a Win10 Pro virtual machine (VMWare player is my personal choice). You'll need to install VMWare Workstation Player which is free, and obtain a perfectly legal Win10 Pro image from microsoft directly here: https://www.microsoft.com/en-us/software-download/windows10
Be sure to activate the virtualization engine of the machine as Docker relies on Hyper-V:
This is how I resolved the problem. (OS- windows 10 home)
Join windows insider program. It enables you to update latest content of windows 10. You can find it in the start-> settings. Make sure to select Release Preview in the Insider program.(otherwise you will not get latest updates. After the installation you can pause frequent updates)
Check for windows update and update windows to latest version.(This will take awhile)
Install WSL 2 Linux kernel
https://learn.microsoft.com/en-us/windows/wsl/wsl2-kernel
I had below issue because I have tried to install this before updating windows. Please read the document carefully and follow steps.
If the installer cant find WSL 1 right click the Linux kernel update
installer, then press uninstall then rerun the installer
Now you are ready to update to WSL 2. Follow steps of this doc
https://learn.microsoft.com/en-us/windows/wsl/install-win10
Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enable the 'Virtual Machine Platform'
Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart your machine to complete the WSL install and update to WSL 2.
You can verify whether this by looking at task manager.
*Set WSL 2 as your default version
In PowerShell: wsl --set-default-version 2
Now you can install docker desktop version.
Finally https://docs.docker.com/docker-for-windows/
This might not work for some. If you find any issues please post. I'll try to help.
This might help someone who cannot upgrade their system to pro or professional. Consider installing Docker Toolbox on Windows. For mac users: Docker Toolbox on Mac
Legacy desktop solution. Docker Toolbox is for older Mac and Windows systems that do not meet the requirements of 'Docker Desktop for Mac' and 'Docker Toolbox on Windows'. We recommend updating to the newer applications, if possible.
As per documentation, the toolbox includes these Docker tools:
Docker Machine for running docker-machine commands
Docker Engine for running the docker commands
Docker Compose for running the docker-compose commands
Kitematic, the Docker GUI
a shell preconfigured for a Docker command-line environment
Oracle VirtualBox
Get the latest update from https://www.microsoft.com/en-us/software-download/windows10 and it will work.
First of all I'd like to thank the previous respondents to this questions - saved me a lot of time and yes, they are both correct.
Secondly as a small completion to their answer, in case you are wondering where you can get a Pro version of Windows without breaking the bank, you can get a relatively cheap and legal Windows 10 pro cd-key from ebay and upgrade you version from Windows settings -> Activation.
https://www.ebay.com/sch/i.html?_from=R40&_nkw=windows+10+pro&_sacat=0&_sop=15
Just make sure you read the sold product description well and eventually the reviews if there are so that you know what to expect (if you encounter any issue, ebay will refund your purchase).
Best of luck to you all!
Related
I have installed latest Docker Desktop. Currently unable to switch to Windows container. The option is blocked from task bar :
I am running Windows 10 Home 64-bit Build 19042.
You need windows 10 Pro or Enterprise to have access to Windows containers.
Source
The other answer will indeed switch your daemon mode to Windows, but you will not be able to pull any Windows container.
Update 2022:
The link above now mentions that it should work for
Windows 11 64-bit: Home or Pro version 21H2 or higher, or Enterprise or Education version 21H2 or higher.
Windows 10 64-bit: Home or Pro 21H1 (build 19043) or higher, or Enterprise or Education 20H2 (build 19042) or higher.
I had spent hours debugging this issue and have to purchase win 10 pro license as well but still faced the same issue, by default it takes linux containers, switching to windows shows waiting forever, anyway here is how I fixed:
Windows Pro
Close/Shutt down the client by right clicking on the tiny icon on taskbar, and wait for a minute or two to have it close itself.
3.Open command prompt with Administrative rights
Type in this command:
c:\Program Files\Docker\Docker\resources>dockerd.exe
Open another command prompt with Administrative rights
C:\Program Files\Docker\Docker>DockerCli.exe -SwitchDaemon
Type "C:\Program Files\Docker\Docker>docker version" command to make sure it has switched to windows containers, it should look like attached screenshot
as per the latest Docker Desktop version, your settings should look like this
Quit Docker Desktop, and open again, Hope it helps some.
This command will change from windows to linux and vice versa.
I could not switch it easily, even using Altaf's approach. Eventually I went to Services (services.msc) and disabled Docker Desktop Service and updated docker service (Docker Engine) to make sure it can automatically start (for example, make sure the daemon.json config file exists in the location as the service command specified).
Then I can verify the result by typing docker version (in non-Administrative command prompt).
https://kontext.tech/article/1216/how-to-change-docker-data-root-path-on-windows-10#h-switch-to-windows-containers
I just installed Docker after upgrading my Windows 10 Home x64 to the version 2004 with the OS build 19041.264 (I needed to upgrade because Docker required me to have an OS buld >19018). Now if I want to launch docker I get this error Hardware assisted virtualization and data execution protection must be enabled in the BIOS. I have already read this (it is old) question, but because they let me install docker on my windows 10 home I assume that I can somehow run it without hyper-v, cuz I can't download it.
The Hyper-V role cannot be installed on Windows 10 Home. Hyper-V is used to run Linux kernel on Windows.
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
The alternative solution is you can use Virtual box instead of Microsoft native Hyper-V. Docker toolbox comes with Virtual box. You can get details installation steps from below link.
https://docs.docker.com/toolbox/toolbox_install_windows/
You will need Windows 10 Pro to run docker. Home edition is not useful for the purpose.
I have a problem with my divio app.
setting up my divio application for the first time, I managed to get a check mark for "docker client", "docker compose", "docker machine" and "virtual box" by installing docker toolbox, however, when trying to install "docker server connection" it seems that Divio app gets stuck at "installing" and nothing actually happens. I left it for hours and nothing happened. What am I getting wrong here? Is it permission issues or something else?
P.S. I'm using windows 7 ultimate 64-bit. Any help is highly appreciated.
Docker, and therefore the Divio local development environment, will run natively on Windows 10 Professional and Enterprise.
On other versions (Windows 10 Home, and earlier versions) it cannot run natively and must be run in a virtual machine.
This is why your installation requires Docker Toolbox and VirtualBox. The best way to get past this is to upgrade to Windows 10 Professional, but that's not an option for everyone.
If the Divio app detects that your system does not support Docker natively, it will do its best to install Docker Toolbox and VirtualBox, but this set-up is more complex and fragile, and as you have seen, setting it up can sometimes fail.
Try these steps:
Quit the Divio application.
Make sure that VirtualBox on your system is fully up-to-date with the latest version. You can download and install it from the VirtualBox website.
Make sure that Docker Toolbox is fully up-to-date with the latest version. You can download and install it from the Docker Toolbox.
Make sure that both applications are able to run if you launch them manually.
Ensure that you are running as an administrator user.
Check that virtualisation is enabled in your PC's BIOS.
Finally, try again with the Divio app.
I am trying to install Docker client on windows but when i start the installer i get the below pop up .
Can someone please guide me what should the solution to this issue be.
I am using windows 7 enterprise, 64 bit.
Thanks in advance.
Docker requires Windows 10. If you are using Windows 7, use Docker toolbox from the following location
https://docs.docker.com/toolbox/overview/.
As you install the toolbox, automatically the VM virtual box also will get installed. Atleast, that is what happened to me.
After installation, my docker container did not start properly.
So, I uninstalled the VM virtual box, installed it again, then started the kitematic and it was all a great flow to see my docker up and running!
Couple of the links that helped me gain better understanding:
https://github.com/docker/machine/issues/4066
https://github.com/docker/toolbox/issues/291
I am facing problem while installing the Docker on my machine. OS is Windows 10 Home Edition. I want to use Splash and that needs Docker.
Docker Toolbox ( Old Link ): https://www.docker.com/products/docker-toolbox
Now You can use Docker Toolbox from here: https://docs.docker.com/toolbox/overview/
Follow these steps to install Docker Toolbox: https://docs.docker.com/toolbox/toolbox_install_windows/#step-3-verify-your-installation
or:
https://docs.bitnami.com/containers/how-to/install-docker-in-windows/
Tutorial For Virtualization : https://www.tutorialspoint.com/windows10/windows10_virtualization.htm
First, check that your PC supports Hyper-V and you have Hyper-V enabled in BIOS. Windows Home does not allows to install some features/packages in GUI, but it's possible to add them from command line.
Make a file hyperv.bat file and run is at Administrator:
#rem Install Hyper-V on Windows Home
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause
Reboot computer after that. Then you need to trick the Docker installer to think you have Windows Pro: change your registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion and change EditionID from Core to Professional.
Instal Docker for Windows, change the registry back. And that's all.
See also https://xmedeko.blogspot.com/2019/04/running-docker-on-windows-10-home.html
I was able to install Docker on Windows 10 home edition by installing legacy Docker software called Docker toolbox and enabling the virtualization in my systems BIOS. Check this to follow the procedure: Installing Docker on Windows 10 home successfully
How to enable virtualization in your systems
Enable from BIOS
CPU virtualization is allowed only for 1 tool on Windows 10 Home. So, remove any other virtualization tool.
So, uncheck even Windows Hypervisor Platform in 'Turn Windows features on and off'
Disable Credential Guard as per https://learn.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-manage
This doesn't happens when the credential helper is run in 'Administrative mode', reason being that running scripts is disabled, we need to enable it
So, as per https://winaero.com/blog/change-powershell-execution-policy-windows-10/
Open 'Command Prompt' in 'Administrator' mode and type -
cd C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Windows\System32\WindowsPowerShell\v1.0>Powershell.exe -ExecutionPolicy Unrestricted -File E:\software\dgreadiness_v3.6\DG_Readiness_Tool_v3.6.ps1 -Disable -AutoReboot
After this, the system reboots and credential guard is disabled
If you don't want to go the Hyper-V way you can use Docker with WSL2(Windows Subsystem for Linux) for Windows 10 Home.
Go to Settings -> Update&Security -> Windows Insider Program and enroll for the 'Slow' track of windows insider.
Enable WSL from instructions given here https://learn.microsoft.com/en-us/windows/wsl/install-win10
Upgrade to WSL2 from here https://learn.microsoft.com/en-us/windows/wsl/wsl2-kernel
Download this version of Docker which supports WSL2 during installation itself :
https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe
Check the boxes to use WSL2 instead of Hyper-V.
If you install the latest Windows 20H1 update you can install Docker Desktop on Windows 10 Home.
c.f. https://www.codingnagger.com/2020/06/20/install-docker-desktop-on-windows-10/
Docker for Windows is available for
Windows 10 64-bit professional and
BIOS-enable virtualization
To run Docker, your machine must have a 64-bit operating system running Windows 7 or higher.
The home edition of Win 10 does not support virtualization but you can enable.
Click on the link https://www.itechtics.com/?dl_id=80 and download the batch file that enables the Hyper-V on Windows 10 Home.
Next, right-click on the batch file and select “Run as Administrator“. Keep in mind, you have to be connected to the Internet to enable this feature!
Once the installation is complete, RESTART your computer!
A Windows Features window will open up. Now, scroll down and enable all the checkboxes under Hyper-V, and hit the OK button.
Open the Start menu and search for “Hyper-V”. If Hyper-V is not showing up in the search results, then open the Run dialog using the Win+R key combo. Now, enter virtmgmt.msc and hit Enter.
The Hyper-V Manager window should now appear.
Now that Hyper-V is enabled, you may start creating your first virtual machine (VM).