setup

windows docker 설치

이휸지 2024. 8. 3. 15:28

설치 전

STEP 1

windows 기능을 검색해 Hyper-V 부분을 모두 체크

 

STEP 2

https://www.docker.com/get-started/

 

Get Started | Docker

Get started with Docker Desktop and join millions of developers in faster, more secure app development using containers and beyond.

www.docker.com

도커 설치

 

✅ WSL2 요구하는 윈도우 컴포넌트 설치
✅ 바탕화면 아이콘 추가

그냥 OK

 

그리고 다 accept 하면 회원가입 하라고 한다

 

설치후

STEP 3

회원가입

 

STEP 4

 

STEP 5

설정확인

docker의 setting에 들어간다

General에서 User the WSL 2 based engine에 체크 되어있는지 확인

 

Resources에서 Enable Resource Saver 체크 되어있는지 확인

 

STEP 6

제대로 설치됐는지 확인하기 위해 Windows terminal 관리자 권한으로 실행

wsl -l -v

 

STEP 7

WSL 2 활성화

WSL2를 이용하면 Windows 환경에서도 Linux를 이용할 수 있고 Docker를 사용할 수 있음

 

Linux용 Windows 하위 시스템 활성화

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

 

 

가상머신 기능 활성화

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