[Docker] Ubuntu 22.04 Docker 설치

Seongkeun·2023년 3월 2일
9

docker

목록 보기
2/5
post-thumbnail

실행환경

  • Ubuntu 22.04

Docker 설치방법


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

sudo apt-get 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가 설치 확인

7-1 도커 실행상태 확인

sudo systemctl status docker

7-2 도커 실행

sudo docker run hello-world

REFERENCE

ChatGPT

profile
지혜는 지식에서 비롯된다

1개의 댓글

comment-user-thumbnail
2023년 5월 28일

Permission 에러 발생할 시 sudo usermod -aG docker $USER 하고, 터미널 나갔다가 들어와야 합니당! 🙏

답글 달기