Skip to content

WSL2 for development

WSL2 (Windows Subsystem for Linux 2) is a critical environment for modern development workflows on Windows. It allows developers to run a genuine Linux kernel directly on Windows, eliminating the need for dual-boot setups or heavy virtual machines for most command-line operations.^[400-devops__02-OS-and-Linux-Basics__windows__000-MOC-windows工具清單.md]

Installation workflow

When setting up a new development machine, WSL2 is often prioritized as the foundational step before installing other development tools. The recommended installation sequence is: 1. Install WSL2. 2. Install Chocolatey (choco). 3. Install Docker Desktop^[400-devops__02-OS-and-Linux-Basics__windows__000-MOC-windows工具清單.md].

This sequence ensures that the Linux environment is available first, providing a compatible substrate for tools like Docker, which rely on the Linux kernel integration provided by WSL2.

  • Scoop: A command-line installer for Windows that complements the WSL environment.
  • Chocolatey
  • [[Docker]]

Sources

  • 400-devops__02-OS-and-Linux-Basics__windows__000-MOC-windows工具清單.md