Windows에 Docker 설치

2025. 1. 4. 12:08·Docker

설치환경

  • OS: Windows 11 Enterprise

 

Docker는 리눅스를 기반으로 윈도우 환경에서 실행하기 위해서는 리눅스를 사용할 수 있도록 환경을 구성해줘야 됨.

윈도우에서 리눅스를 사용할 수 있도록 WSL2 설치 및 활성화가 필요.


 

1. WSL2 설치 및 활성화

  • 관리자 권한으로 PowerShell 실행
  • WSL2 설치 및 재부팅
    • PS C:\> wsl --install
PS C:\> wsl --install
다운로드 중: Linux용 Windows 하위 시스템 2.3.26
설치 중: Linux용 Windows 하위 시스템 2.3.26
Linux용 Windows 하위 시스템 2.3.26이(가) 설치되었습니다.
Windows 선택적 구성 요소 VirtualMachinePlatform 설치

배포 이미지 서비스 및 관리 도구
버전: 10.0.26100.1150

이미지 버전: 10.0.26100.2454

기능을 사용하도록 설정하는 중
[==========================100.0%==========================]
작업을 완료했습니다.
요청한 작업이 잘 실행되었습니다. 시스템을 다시 시작하면 변경 사항이 적용됩니다.
설치 중: Ubuntu
Ubuntu이(가) 설치되었습니다.
Ubuntu을(를) 시작하는 중...
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: <사용할 계정>
New password: <사용할 패스워드>
Retype new password: <사용할 패스워드>
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 5.15.167.4-microsoft-standard-WSL2 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

 System information as of Sat Jan  4 11:59:17 KST 2025

  System load:  0.43                Processes:             32
  Usage of /:   0.1% of 1006.85GB   Users logged in:       0
  Memory usage: 2%                  IPv4 address for eth0: 192.168.84.210
  Swap usage:   0%


This message is shown once a day. To disable it please create the
/home/<계정명>/.hushlogin file.

 

 

 

2. Docker Desktop 설치

  • Docker Desktop for Windows 설치 파일 다운로드: https://docs.docker.com/get-started/get-docker/
 

Get Docker

Download and install Docker on the platform of your choice, including Mac, Linux, or Windows.

docs.docker.com

 

시스템 요구 사항

-------------------- -------------------- -------------------- -------------------- --------------------

-------------------- -------------------- -------------------- -------------------- --------------------

 

 

  • Docker 설치

 

 

"Close and restart" 클릭 시 장비 자동 재부팅 (사전에 필요한 내용은 저장 필요)

 

리부팅 후

 

Create an account 클릭 후 docker 계정 생성

 

Personal 선택 후 진행

  • Work 계정(기업이나 대규모 조직을 위한 옵션)
    • 유료 구독 필요(Pro, Team, Business 플랜 중 선택)
    • 더 많은 private 레포지토리 제공
    • 팀 협업 기능 강화
    • Docker Desktop 라이선스 제한 없이 사용 가능
    • 동시 Docker 빌드 시 성능 향
  • Personal 계정(개인 사용자를 위한 옵션)
    • 무료 사용 가능
    • 개인 프로젝트나 소규모 팀에 적합
      (250명 이하 직원이 있는 조직이나 연간 매출 $1,000만 미만의 회사에서 사용 가능)
    • 하나의 private 레포지토리 제공 (저장소 - 2GB, 이미지 풀 제한 - 시간 당 40회)

 

계정 생성 후 로그인

 

Welcome Survey~ (Skip)

 

 

 

3. 설치 확인

wsl 실행 후 진행

  • 버전 확인
    • # docker --version
# docker --version
Docker version 27.4.0, build bde2b89
  • hello-world 실행
    • # docker run hello-world
# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c1ec31eb5944: Download complete
Digest: sha256:5b3cc85e16e3058003c13b7821318369dad01dac3dbb877aac3c28182255c724
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

 

여기까지 실행되면 Docker가 정상적으로 동작하는 것임

 

저작자표시 비영리 변경금지
'Docker' 카테고리의 다른 글
  • 리눅스 VM에 Docker 구성(Docker-Compose 포함)
  • Docker Hub Private Repository 구성
  • Docker attach 와 exec 차이점
  • 컨테이너로 이미지 생성
기억보다는 기록을...
기억보다는 기록을...
내가 보려고 정리하는 글..
  • 기억보다는 기록을...
    메모장
    기억보다는 기록을...
    • 분류 전체보기
      • 클라우드(Azure, AWS)
      • 모니터링(Zabbix,Grafana)
      • 가상화(VMWare, Hyper-V)
      • Docker
      • Ansible
      • Linux
      • Windows
      • 이것저것
      • SQL
      • -------------------------
      • 재테크
  • 전체
    오늘
    어제
  • hELLO· Designed By정상우.v4.10.2
기억보다는 기록을...
Windows에 Docker 설치

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.