WSL2 是什么 全称为Windows Subsystem for Linux2。是一个能在Windows上运行Linux运行环境的工具。是WSL的第二代。 简单来说就是Windows下的Linux虚拟 ... ... <看更多>
「wsl2 是 什麼」的推薦目錄:
- 關於wsl2 是 什麼 在 [分享] new WSL2 and new Docker at win10 - 看板Linux 的評價
- 關於wsl2 是 什麼 在 WSL2 -- Windows10 环境中运行Linux (无缝衔接,开发利器) 的評價
- 關於wsl2 是 什麼 在 wsl2是什麼的費用及心得,PTT和網友分享 的評價
- 關於wsl2 是 什麼 在 WSL2 | 嵌入式系統軟體開發環境建置 - YouTube 的評價
- 關於wsl2 是 什麼 在 新電腦節點0.3.4版本須更新WSL2 過去Pi... - Pi Network-Taiwan 的評價
- 關於wsl2 是 什麼 在 microsoft/WSL2-Linux-Kernel: The source for the ... - GitHub 的評價
wsl2 是 什麼 在 WSL2 | 嵌入式系統軟體開發環境建置 - YouTube 的推薦與評價
WSL 全名Windows Subsystem for Linux,目前最新版本為 WSL2 ,這子系統 是 微軟提供給開發人員直接在Windows進行Linux相關的系統開發;今天就以上次安裝 ... ... <看更多>
wsl2 是 什麼 在 新電腦節點0.3.4版本須更新WSL2 過去Pi... - Pi Network-Taiwan 的推薦與評價
新電腦節點0.3.4版本須更新WSL2 過去Pi node節點的Docker Desktop是使用HYPER-V核心,而這次電腦Node v0.3.4版本,不只優化原本連線系統跟記憶設定外 ... ... <看更多>
wsl2 是 什麼 在 microsoft/WSL2-Linux-Kernel: The source for the ... - GitHub 的推薦與評價
Reporting Bugs. If you discover an issue relating to WSL or the WSL2 kernel, please report it on the WSL GitHub project. It is not possible to report ... ... <看更多>
wsl2 是 什麼 在 [分享] new WSL2 and new Docker at win10 - 看板Linux 的推薦與評價
https://is.gd/JjgLXs
首先win10 要是2004以上 19041build以上
請去windows update 更新win10 2004
安裝有linux kernel的WSL2
https://docs.microsoft.com/en-us/windows/wsl/install-win10
Powershell 以系統管理員執行
打開WSL功能
$ dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linu
打開virtualmachine platform功能
$ dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /nor
或者透過控制台打開
重開機
下載WSL2 linux kernel 安裝
https://aka.ms/wsl2kernel
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
直接點擊wsl_update_x64.msi安裝
powershell 將WSL預設版本調成WSL2
$ wsl --set-default-version 2
點開microsoft store安裝 你要的WSL版本 https://aka.ms/wslstore
https://docs.microsoft.com/en-us/windows/wsl/media/store.png
我是選ubuntu20.04
設帳號密碼
https://docs.microsoft.com/en-us/windows/wsl/media/ubuntuinstall.png
再來就可以用WSL2了
C槽會mount在 WSL的路徑
/mnt/c
所以檔案系統是互通的
-------------------------------------
安裝win10 docker desktop
https://docs.docker.com/docker-for-windows/wsl/
一定要安裝最新版
https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe
安裝時勾選WSL2 Intergration 就不需要開啟hyperV就能用
win10家用版也可使用
安裝完點開Docker Desktop 設定確認一下 WSL2功能開啟
https://docs.docker.com/docker-for-windows/images/wsl2-enable.png
https://docs.docker.com/docker-for-windows/images/wsl2-choose-distro.png
打開WSL2的terminal (WSL2不需要另外安裝linux版docker-ce)
$ docker version
$ docker pull hello-world
再來就可以開始使用WSL2 linux kernel的docker
再也不需要用win10 hyperV docker
然後目前vscode有支援WSL開發
https://code.visualstudio.com/blogs/2020/03/02/docker-in-wsl2
記得裝外掛
https://is.gd/pk0DaX
win10可以很方便使用linux開發了
不需要用vm
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.10.16.115 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1590233487.A.F65.html
... <看更多>