Cloud/Docker
Docker 설치
欲心
2024. 6. 18. 21:30
■ 도커 엔진 설치
# yum -y remove runc
□ Yum Repository 설치
# yum config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# yum -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# systemctl enable --now docker.service
□ RPM 파일을 직접 받아서 설치
# wget https://download.docker.com/linux/centos/8/x86_64/stable/Packages/
* containerd.io-1.6.9-3.1.el8.x86_64.rpm
* docker-buildx-plugin-0.11.2-1.el8.x86_64.rpm
* docker-ce-24.0.6-1.el8.x86_64.rpm
* docker-ce-cli-24.0.6-1.el8.x86_64.rpm
* docker-ce-rootless-extras-24.0.6-1.el8.x86_64.rpm
* docker-compose-plugin-2.6.0-3.el8.x86_64.rpm
* docker-scan-plugin-0.9.0-3.el8.x86_64.rpm
# yum localinstall $PKG
# systemctl enable --now docker.service
□ 설치 스크립트를 사용하는 방법
# curl -fsSL https://get.docker.com -o get-docker.sh
# bash get docker.sh
# systemctl enable --now docker.service
□ Docker 설치 확인
# docker run hello-world
Install Docker Engine on CentOS
Learn how to install Docker Engine on CentOS. These instructions cover the different installation methods, how to uninstall, and next steps.
docs.docker.com