UNIX (AIX, LINUX, HP-UX, SOLARIS, ...)/etc

[Linux] CentOS8 Docker 설치

아무일도없었다 2022. 8. 10. 11:42

CentOS 8 에서 Docker 를 설치하려고 했는데 아래의 오류가 뜨면서 설치가 안된다.

 

 

[root@kube212 ~]# yum install docker 
마지막 메타 데이터 만료 확인 : 0:10:10 전에 2020년 08월 13일 (목) 오전 04시 57분 05초. 
All matches were filtered out by modular filtering for argument: docker 
오류: 경기를 찾을 수 없습니다.: docker 
[root@kube212 ~]# yum install docker-ce 
마지막 메타 데이터 만료 확인 : 0:10:33 전에 2020년 08월 13일 (목) 오전 04시 57분 05초. 
오류:  
 문제: package docker-ce-3:19.03.12-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed 
  - cannot install the best candidate for the job 
  - package containerd.io-1.2.10-3.2.el7.x86_64 is filtered out by modular filtering 
  - package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering 
  - package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering 
  - package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering 
  - package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering 
  - package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering 
  - package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering 
  - package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering 
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

 

 

알아보니 CentOS 8 에는 문제가 있어서 그냥 단순하게 설치가 안된다고 한다.

 

구글링을 통해 찾은 해결방법은 containerd.io 패키지를 수동으로 설치하는것

 

yum install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.13-3.1.el7.x86_64.rpm

 

이후에 설치하면 잘된다.
dnf clean packages
yum install -y docker-ce
 
반응형