什麼是WSL(Windows 子系統 Linux版)?
出自:微軟 - 什麼是 Windows 子系統 Linux 版?
適用於 Linux 的 Windows 子系統可讓開發人員執行 GNU/Linux 環境 (包括大部分的命令列工具、公用程式和應用程式),直接在 Windows 上執行,不需進行修改,不會造成傳統虛擬機器或 dualboot 設定的額外負荷。
參考文件
(一)電腦環境 - Hyper-V
- Windows 10:Pro 21H1(build 19043)或更高版本,或 Enterprise/Education 20H2(build 19042)或更高版本
- Windows 11:專業版/企業版/教育版 21H2 或更高版本
設定
-
點擊「開啟或關閉Windows功能」
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
-
勾選「Hyper-V」、「容器」並確定
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
(二)Docker安裝流程
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
2. 安裝docker
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
3. 安裝完成
「Close and restart」會使電腦重新啟動,請確保電腦其他檔案保存狀態。
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
4. 使用PowerShell更新wsl
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
輸入指令:wsl --update
執行指令後會詢問「Windows 子系統 Linux版」等項目的安裝詢問視窗,都按「確定」。
5. 更新完成
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
6. 開始使用Docker
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →