Windows10 2004 WSL2 활성화하기

WSL2 기반 docker 사용시 vmmem 프로세스 메모리 소모량 줄이기

설치

powershell을 관리자 권한으로 열기

Linux용 Windows 하위 시스템 설치 후 재부팅

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Virtual Machine 기능 사용 설정 후 재부팅

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

WSL 2를 기본 버전으로 설정

wsl --set-default-version 2

버전 확인 방법

wsl --list --verbose

Miscrosoft store에서 linux를 검색하여 ubuntu 설치 후 실행하면 installing...이라고 뜸

ubuntu 터미널보다 windows terminal이 훨씬 좋음

명령어

Windows 10에서 Linux (WSL) 파일에 액세스하는 방법(윈도우 파일 탐색기)

Linux 용 Windows 서브 시스템 환경에서 아래 명령어 실행

explorer.exe .

Docker