具体命令如下:
uname -r
yum update
yum erase -y docker docker-common docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y install docker-ce
systemctl start docker
之后查看Docker的状态:
systemctl status docker
之后 就可以在docker容器中进行项目的部署和包的安装了