Skip to content

Instantly share code, notes, and snippets.

@nopedev
Last active March 24, 2022 05:42
Show Gist options
  • Save nopedev/ee503fd9c1938f245239d031f5a5dd75 to your computer and use it in GitHub Desktop.
Save nopedev/ee503fd9c1938f245239d031f5a5dd75 to your computer and use it in GitHub Desktop.
윈도우10 WSL2 Ubuntu
  1. update Window

  2. in CMOS enable Virtualization Technology

  3. Powershell or CMD open ad Admin

    Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
    
    # 온라인 스토어를 통해 다운로드할 수 있는 Linux 배포판 목록
    wsl -l -o | wsl --list --online
    
    # 선택한 배포판 설치
    wsl --install -d <Distribution Name>
    
    # 배포판 이름 없이 설치하면 Ubuntu 깔림 (버전 20.04) / Ubuntu 깔면 20.04 깔림 (목록의 Ubuntu-20.04 랑 같다고 봐도 무방한데 별개임)
    wsl --install 
    
  4. wsl 버전 확일

    wsl -l -v
    
    # 버전 확인해서 1로 잡혀 있으면 2로 변경
    wsl --set-version ubuntu 2
    
  5. Docker for Window 설치

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment