1、安装依赖包@H_502_1@
yum install -y yum-utils device-mapper-persistent-data lvm2
2、添加Docker软件包源@H_502_1@
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
3、更新yum包索引@H_502_1@
yum makecache fast
4、安装Docker CE@H_502_1@
yum install docker-ce
5、启动@H_502_1@
systemctl start docker
6、卸载@H_502_1@
yum remove docker-ce rm -rf /var/lib/docker