선 밖에 선 자유인

Docker-CE install on CentOS 8 본문

IT/Cloud & DevOps

Docker-CE install on CentOS 8

Hotman 2020. 5. 7. 16:03

CentOS 8에서는 docker 를 설치하려고 하면 기본적으로 podman 설치하라고 권고를 함

podman 은 나중에 써보기로 하고 아래와 같이 docker 설치 가능

 

# dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

 

그냥 설치하면 아래와 같은 Eorror 가 보이기 때문에 --nobest 옵션 추가하여 설치

문제: package docker-ce-3:19.03.8-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 excluded

 - package containerd.io-1.2.13-3.1.el7.x86_64 is excluded

 - package containerd.io-1.2.2-3.3.el7.x86_64 is excluded

 - package containerd.io-1.2.2-3.el7.x86_64 is excluded

 - package containerd.io-1.2.4-3.1.el7.x86_64 is excluded

 - package containerd.io-1.2.5-3.1.el7.x86_64 is excluded

 - package containerd.io-1.2.6-3.3.el7.x86_64 is excluded

 

# dnf install docker-ce --nobest -y

# systemctl start docker

# systemctl enable docker

 

- docker-compose 설치

https://github.com/docker/compose/releases 에서 최신 버전 확인 후

# curl -L https://github.com/docker/compose/releases/download/1.25.5/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose 

# chmod +x /usr/local/bin/docker-compose

 

Comments