docker系列-報錯以及解決指南

1. windows運行docker報錯Windows Hypervisor is not presentDocker Desktop is unable to detect a Hypervisor.Hardware assisted virtualization and data execution protection must be enabled in the BIOS.
Docker Desktop - Windows Hypervisor is not presentDocker Desktop is unable to detect a Hypervisor.Hardware assisted virtualization and data execution protection must be enabled in the BIOS. See https://docs.docker.com/desktop/troubleshoot/topics/#virtualization

 


解決方案
1. 檢查

 


2. 搜索並打開 windows功能

 

 

 

 


3. 管理員身份打開 cmd窗口

 

 


執行

1、dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

 

4. 如果重啓不行 執行
1、bcdedit /set hypervisorlaunchtype auto

 


5. 繼續重啓電腦
2.WSL kernel version too lowDocker Desktop requires a newer WSL kernel version.
Docker Desktop - WSL kernel version too lowDocker Desktop requires a newer WSL kernel version.Update the WSL kernel by running “wsl --update” or follow instructions at https://docs.microsoft.com/windows/wsl/wsl2-kernel.

 


解決方案
適用於 Linux 的 Windows 子系統 (WSL) 可讓開發人員直接在 Windows 上按原樣運行 GNU/Linux 環境(包括大多數命令行工具、實用工具和應用程序),且不會產生傳統虛擬機或雙啓動設置開銷。

1: 檢查 WSL 版本
打開 Windows 終端,並運行以下命令:

wsl -l -v
1


2.安裝
1、wsl --update

3.檢查

 


4.殺死docker程序,然後重新打開

 

 


原文鏈接:https://blog.csdn.net/tangdou369098655/article/details/132867900

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章