centos7在线安装docker-本地记录

配置阿里云源和epel源
wget http://mirrors.aliyun.com/repo/Centos-7.repo
mv CentOs-Base.repo CentOs-Base.repo.bak
mv Centos-7.repo CentOs-Base.repo
yum install epel-release
yum clean all
yum makecache

安装docker-参考
https://blog.csdn.net/u014069688/article/details/100532774

yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager –add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum list docker-ce –showduplicates | sort -r
yum install docker-ce-18.06.3.ce-3.el7
systemctl status docker
systemctl start docker
systemctl enable docker