[Docker] Ubuntu 22.04 Docker 설치

실행환경

  • Ubuntu 22.04

Docker 설치방법

1. 우분투 시스템 패키지 업데이트

sudo apt update

2. 필요한 패키지 설치

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

3. Docker의 공식 GPG키 추가

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

4. DOcker의 공식 apt 저장소를 추가

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

5. 시스템 패키지 업데이트

sudo apt-get update

6. Docker 설치

sudo apt-get install docker-ce docker-ce-cli containerd.io

7. Docker 설치 확인

sudo systemctl status docker

'DevOps' 카테고리의 다른 글

ssh connection timeout  (0) 2024.02.05
[Ubuntu] Ubuntu 22.04 swap 메모리 설정  (0) 2024.02.03
[ELK] 로그 모니터링 시스템  (1) 2024.01.05
[CI/CD] Jenkins로 CI/CD 구축하기  (0) 2024.01.03
[CI/CD] CI/CD란?  (0) 2024.01.02