啟動桌面Docker提示虛擬服務(wù)未啟動兩種解決方案
在啟動 Docker Desktop 時,可能會遇到以下提示:
Docker Desktop - Virtual Machine Platform not enabled Virtual Machine Platform not enabled

該錯誤通常是由于 Windows 未啟用 “Virtual Machine Platform” 功能導(dǎo)致的,這是運(yùn)行 Docker Desktop(特別是基于 WSL 2 的后端)所必需的組件。
使用 PowerShell 命令啟用 Virtual Machine Platform 并重啟計算機(jī)。可以通過 DISM 或 Enable-WindowsOptionalFeature 命令來啟用 Virtual Machine Platform。
解決方案 1:使用 DISM 命令
以管理員身份運(yùn)行 PowerShell 執(zhí)行以下命令啟用 Virtual Machine Platform:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

解決方案2:使用 PowerShell Enable-WindowsOptionalFeature 命令
同樣,以管理員身份運(yùn)行 PowerShell,執(zhí)行以下命令:
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -All -NoRestart

重啟計算機(jī) 以應(yīng)用更改:
Restart-Computer
重啟計算機(jī)后,再次啟動 Docker Desktop,錯誤提示應(yīng)消失。如果仍然遇到問題,檢查 BIOS 設(shè)置是否已啟用虛擬化技術(shù)(VT-x 或 AMD-V)。
啟用 Virtual Machine Platform 是運(yùn)行 Docker Desktop 的前提條件之一??梢允褂?nbsp;DISM 或 Enable-WindowsOptionalFeature 命令來快速啟用該功能,確保在 BIOS 里啟用了虛擬化技術(shù),并在操作完成后重啟計算機(jī)以應(yīng)用更改。
總結(jié)
到此這篇關(guān)于啟動桌面Docker提示虛擬服務(wù)未啟動兩種解決方案的文章就介紹到這了,更多相關(guān)啟動桌面Docker虛擬服務(wù)未啟動內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Docker鏡像的遷移與備份及Dockerflie 使用方法詳解
遷移和備份主要有三個操作命令將容器保存為鏡像、備份鏡像(將鏡像導(dǎo)出為一個文件)、鏡像的遷移與恢復(fù),這篇文章主要介紹了Docker鏡像的遷移與備份、Dockerflie 使用方法,需要的朋友可以參考下2022-07-07
Docker創(chuàng)建enrollment token錯誤異常解析及解決方案
Docker使用nodejs鏡像構(gòu)建express服務(wù)的方法
docker國內(nèi)鏡像源配置及走代理設(shè)置小結(jié)
Docker部署后端項(xiàng)目的實(shí)現(xiàn)步驟

