答案 0 :(得分:35)
Docker Toolbox(旧链接):https://www.docker.com/products/docker-toolbox
现在您可以从这里使用Docker Toolbox:https://docs.docker.com/toolbox/overview/
按照以下步骤安装Docker Toolbox:https://docs.docker.com/toolbox/toolbox_install_windows/#step-3-verify-your-installation
或强>
https://docs.bitnami.com/containers/how-to/install-docker-in-windows/
虚拟化教程: https://www.tutorialspoint.com/windows10/windows10_virtualization.htm
答案 1 :(得分:2)
首先,检查您的PC是否支持Hyper-V,并且已在BIOS中启用了Hyper-V。 Windows Home不允许在GUI中安装某些功能/程序包,但可以从命令行添加它们。
制作文件hyperv.bat
文件并在管理员位置运行:
@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
然后重新启动计算机。然后,您需要欺骗Docker安装程序以使其拥有Windows Pro:更改注册表:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
,并将EditionID
从Core
更改为Professional
。
安装适用于Windows的Docker,重新更改注册表。就是这样。
另请参阅https://xmedeko.blogspot.com/2019/04/running-docker-on-windows-10-home.html
答案 2 :(得分:0)
1. Enable from BIOS
2. 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'
3. Disable Credential Guard as per https://docs.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
答案 3 :(得分:0)
通过安装称为Docker工具箱的旧Docker软件并在系统BIOS中启用虚拟化,我能够在Windows 10家庭版上安装Docker。选中它以遵循以下过程:Installing Docker on Windows 10 home successfully How to enable virtualization in your systems
答案 4 :(得分:0)
如果您不想采用Hyper-V方式,则可以将Docker与Windows 10 Home的WSL2(Linux的Windows子系统)一起使用。
转到“设置”->“更新和安全性”->“ Windows Insider程序”并注册Windows Insider的“慢速”跟踪。
根据此处https://docs.microsoft.com/en-us/windows/wsl/install-win10
从此处https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel升级到WSL2
下载此版本的Docker,它在安装过程中本身支持WSL2: https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe
选中相应的框以使用WSL2代替Hyper-V。
答案 5 :(得分:0)
如果您安装了最新的Windows 20H1更新,则可以在Windows 10 Home上安装Docker Desktop。
c.f。 https://www.codingnagger.com/2020/06/20/install-docker-desktop-on-windows-10/
答案 6 :(得分:0)
适用于Windows的Docker可用于
Windows 10 64位专业版和
启用BIOS的虚拟化
要运行Docker,您的计算机必须具有运行Windows 7或更高版本的64位操作系统。
答案 7 :(得分:-3)
必须启用虚拟化。
https://docs.docker.com/docker-for-windows/install/
我在BIOS设置中启用了虚拟化。然后在Windows>任务管理器>性能显示“虚拟化:已启用”