2023년 3월 7일 화요일

Windows에 도커 설치

 (1) WSL 설치

powershell을 관리자 권한으로 열고,


# Windows SubSystem Linux를 활성화시키는 명령어

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

# VirtualMachinePlatform 기능을 활성화시키는 명령어 : WSL2 버전에 필요한 명령어

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


설치 완료 후 재부팅


(2) Docker Desktop for Windows 다운로드 후 설치

Installer를 다운로드하여 설치하고, 활성화 시키기 위해서는

"Docker desktop" 아이콘을 실행 시켜야 함


(3) 간단한 예제 실행

> docker run -it ubuntu bash


참고

1. 도커 설치: https://axce.tistory.com/121

2. wsl 설치: https://axce.tistory.com/110?category=1030982

댓글 없음:

댓글 쓰기