WSL 2 的 .wslconfig 設定檔說明
WSL 2 的 .wslconfig 設定檔說明 Release Notes for Windows Subsystem for Linux | Microsoft Docs - Build 18945 在 Windows 10 環境上安裝 WSL 2 使用 WSL 2 打造優質的多重 Linux 開發環境 安裝 WSL 2 的步驟:
加入 Windows Insider Program(此步驟不可省略) 啟用 WSL 必要元件 安裝 Linux 發行版本 設定 WSL 2 支援的 Linux 發行版本 WSL 2 問題排除:啟用壓縮功能的虛擬磁碟檔案無法轉換成 WSL 2 架構 安裝及啟動 Docker 安裝 Docker Desktop v2.2.1.0 # 啟用 WSL 必要元件 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart # 設定 WSL 2 支援的 Linux 發行版本 wsl --set-version ubuntu 2 wsl --set-default-version 2 編輯 %UserProfile%\.wslconfig 檔案