본문 바로가기

Tech/Tips

CentOS 8에서 Docker CE 설치하기

반응형

이미지 출처 : Pixabay

개발용 서버 세팅을 위해 CentOS 8을 설치하였습니다.

Reference : https://www.linuxtechi.com/install-docker-ce-centos-8-rhel-8/

 

How to Install Docker CE on CentOS 8 / RHEL 8 Server

Docker is a daemon-based container engine which allows us to deploy applications inside containers. With the release of RHEL 8 and CentOS 8, docker package has been removed from their default package repositories, docker has been replaced with podman and b

www.linuxtechi.com

CentOS 8 릴리즈에서 도커가 디폴트 패키지 레포지토리에서 제거되고 podman과 buildah가 도커를 대체하고 있습니다.

도커 CE를 설치하기 위하여 맥에서 ssh로 서버와 연결 후 해당 레포지토리를 등록합니다.

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

실행 결과

그리고 docker-ce를 설치해 줍니다.

sudo dnf install docker-ce --nobest -y

 실행결과

도커가 설치되면 서비스를 시작하고 등록한 후 버전을 확인합니다.

sudo systemctl start docker>
sudo systemctl enable docker>
docker --version

실행 결과

그리고 hello-world를 실행시킵니다.

sudo docker run hello-world

실행 결과

반응형