[VScode] VScode로 windows 환경에서 Docker 접속하기 위한 환경 설정
0. VScode 설치
https://code.visualstudio.com/download
Download Visual Studio Code - Mac, Linux, Windows
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.
code.visualstudio.com
1. VScode Extensions에 Docker install
2. Install Docker Desktop on Windows
https://docs.docker.com/desktop/install/windows-install/
Install Docker Desktop on Windows
docs.docker.com
3. Install WSL on Windows
이전 버전 WSL의 수동 설치 단계
wsl install 명령을 사용하지 않고 이전 버전의 Windows에 WSL을 수동으로 설치하는 방법에 대한 단계별 지침입니다.
docs.microsoft.com
1단계
PowerShell을 관리자 권한(시작 메뉴 > PowerShell >에서 관리자 권한으로 실행 >을 마우스 오른쪽 단추로 클릭) 실행
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
2단계
WSL 2로 업데이트하려면 Windows 10을 실행해야 합니다.
- x64 시스템의 경우: 버전 1903 이상, 빌드 18362 이상
- ARM64 시스템의 경우: 버전 2004 이상, 빌드 19041 이상
3단계
PowerShell을 관리자 권한 실행
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
4단계
최신 패키지 다운로드 및 실행
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
5단계
WSL 2를 기본 버전으로 설정
wsl --set-default-version 2