Docker installation issues on Windows 10 Home Edition

后端 未结 7 1575
半阙折子戏
半阙折子戏 2021-02-01 16:20

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.

7条回答
  •  佛祖请我去吃肉
    2021-02-01 16:30

    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

提交回复
热议问题