日期:2023-08-25  浏览次数:177 次

我的 windows 10 操作系统,安装完 Docker desktop,第一次启动时,遇到如下错误消息:

Docker Desktop - Windows containers not enabled
Containers feature is disabled. Enable it using the PowerShell script (in anadministrative PowerShell) and restart your computer before using Docker Desktop!
Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V"Containers") -All

 

将下列 script 脚本,粘贴到 powershell 里执行后:

Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All

问题得以解决: