Jul
24
1. 安装基础环境
yum install -y yum-utils device-mapper-persistent-data lvm2
yum install -y https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
2. 增加docker的源文件
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3. 安装docker
yum -y install docker-ce
4. 设置自动启动
systemctl enable docker
systemctl restart docker
systemctl restart docker