Docker 설치

Jinjin·2023년 7월 29일
0

실행환경 : Ubuntu 20.04

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
profile
BE Developer

1개의 댓글

comment-user-thumbnail
2023년 7월 29일

좋은 글이네요. 공유해주셔서 감사합니다.

답글 달기