1、安装依赖包

yum install -y yum-utils device-mapper-persistent-data lvm2

2、安装yum库

yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

3、安装dokcer

yum install docker-ce -y


4、启动dokcer

开启镜像加速

curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://bc437cce.m.daocloud.io
启动dokcer
systemctl start docker
systemctl enable docker


 
                    
            
                

相关文章: