Peony의 기록 창고 🌼
반응형
  1. 시스템 업데이트
sudo apt update

 

  1. 필요한 의존성 패키지 설치
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
  • apt-transport-https : APT가 https를 통해 리포지토리에 접근할 수 있게 해준다.
  • ca-certificates : 이 패키지는 많은 공인 인증 기관(CA)에서 발급한 인증서를 포함하고 있으며, SSL/TLS를 통해 보안된 통신을 할 때 이 인증서들이 필요하다.
  • software-properties-common : 소프트웨어 소스를 관리하는 데 사용되는 명령어들이다.

 

  1. Docker 공식 GPG 키 추가:
curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> 
| sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

 

  1. Docker repository 추가
echo \
"deb [arch=arm64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  1. 도커 설치
sudo apt-get install docker-ce docker-ce-cli containerd.io

 

Package docker-ce is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: docker-ce-cli:amd64

W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1 W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1 W: Target CNF (stable/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1 W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-jammy.list:1 and /etc/apt/sources.list.d/docker.list:1 E: Package 'docker-ce' has no installation candidate E: Unable to locate package docker-ce-cli E: Unable to locate package containerd.io E: Couldn't find any package by glob 'containerd.io' E: Couldn't find any package by regex 'containerd.io'

 

이런 내용이 떠서 도커 버전 검색 명령어를 쳐봤다.

docker -v

Command 'docker' not found, but can be installed with: sudo snap install docker # version 24.0.5, or sudo apt install podman-docker # version 3.4.4+ds1-1ubuntu1.22.04.2 sudo apt install docker.io # version 24.0.5-0ubuntu1~22.04.1 See 'snap info docker' for additional versions.

 

역시나.. 나오지 않는다

오류 메세지를 보고 다음 명령어로 도커를 설치했다.

$ apt install docker-ce-cli:amd64
$ sudo apt  install docker.io

버전 확인

$ docker -v

Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1

 

버전이 확인 가능하면 성공 ~

반응형
profile

Peony의 기록 창고 🌼

@myeongju