1.
yum upgrade -y
yum -y install epel-release wget
yum install -y yum-utils device-mapper-persistent-data lvm2 wget
2.
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
3.
yum -y install docker-ce
4.
systemctl enable docker
systemctl start docker
来源:oschina
链接:https://my.oschina.net/jk409/blog/4462598