setp 1:
update centos.
sudo yum update
setp 2:
Install dependent packages.
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
setp 3:
The latest official version is only available on November 7, 2020.
yum-config-manager --disable docker-ce-stable
setp 4:
Install docker.
sudo yum install docker -y
setp 5:
Setting startus.
sudo systemctl start docker
sudo systemctl enable docker
end.