1.
yum update
2.
yum install -y yum-utils device-mapper-persistent-data lvm2
3.
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo(阿里仓库)
4
yum list docker-ce
5.
yum install docker-ce
6.
systemctl start docker
systemctl enable docker
7
docker version
原文地址:https://www.cnblogs.com/sunnykwan/p/12016472.html
时间: 2024-10-09 03:55:04