📅  最后修改于: 2022-03-11 14:49:58.638000             🧑  作者: Mango
sudo yum update
sudo yum install yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce -y
sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl status docker
sudo docker -v