docker 설치 방법은 3가지가 있다.
sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
ll /etc/yum.repos.d/
sudo yum list | grep docker-ce
sudo yum install docker-ce docker-ce-cli containerd.io
sudo yum -y remove podman
sudo yum -y remove buildah
sudo systemctl start docker
sudo systemctl enable docker
sudo docker version
sudo yum remove docker-ce docker-ce-cli containerd.io
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
cat /etc/centos-release
cat /etc/system-release
centos docker 사이트로 이동 -> 버전 -> cpu 종류 -> stable -> packages 링크 순으로 이동한다.
최신 버전을 다운받는다.
sudo yum install *.rpm
sudo systemctl start docker
sudo systemctl enable docker
sudo docker version
get-docker.sh
이름으로 저장한다.curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo systemctl start docker
sudo systemctl enable docker
sudo docker version
출처