# 1. 우분투 시스템 패키지 업데이터
apt-get update
# 2. 패키지 설치
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저장소 추가
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# 5. 패키지 업데이트
apt-get update
# 6. Docker 설치
apt-get install docker-ce docker-ce-cli containerd.io
# 7. 설치확인
systemctl status docker
docker run hello-world
도커 설치완료 화면.

도커 이미지 다운로드
- httpd
- alpine
- mysql:5.7
- nginx
- nginx:1.23
- centos:7
- wordpress:5.6
- nginx:1.16
docker pull <이미지명>
docker save -o images.tar <도커이미지>
scp images.tar root@<IPADDR>:/root
ctr -n k8s.io image import images.tar