yum安装docker
警告
本文最后更新于 2020-05-30 17:09,文中内容可能已过时。
docker-ce: docker社区版
docker-ee: docker企业版
1.配置docker-ce yum源
curl -o /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
2.安装docker-ce
yum install -y docker-ce
3.设置开机自启并启动docker
systemctl enable docker systemctl start docker
请我喝杯水

