簡體   English   中英

Docker 無法使用 WSL 在 Windows 11 上啟動

[英]Docker fails to start on Windows 11 with WSL

我已經在 SO 上搜索過類似的問題,但沒有一個答案有幫助。

我安裝卸載docker多次,每次都重啟。 我設置了 env 變量,我可以運行 docker,看到它已安裝在終端中,但 GUI 無法啟動。

在此處輸入圖像描述

這是我在嘗試運行 hello world 命令時遇到的錯誤。

docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create": open //./pipe/docker_engine: The system cannot find the file specified.

我在 Windows 11 家庭版上運行它。

任何幫助表示贊賞。

似乎與新的 Docker 版本有關。 降級后,我也能正常工作了。 Docker 版本 4.4.4

通過以管理員身份在 powershell 中運行以下命令,確保您也允許虛擬化: bcdedit /set hypervisorlaunchtype auto

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM