1. yum -y install gcc
    2. yum -y install gcc-c++
    3. yum install -y yum-utils
    4. yum-config-manager —add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
    5. yum makecache fast
    6. yum -y install docker-ce docker-ce-cli containerd.io
    7. systemctl start docker
    8. docker version
    9. ps -ef|grep docker
    10. docker run hello-world
    11. 配置镜像加速器
      1. mkdir -p /etc/docker
      2. tee /etc/docker/daemon.json <<-‘EOF’
        {
        “registry-mirrors”: [“https://afiyusyw.mirror.aliyuncs.com“]
        }
        EOF
    12. Systemctl restart docker 重启
    13. systemctl daemon-reload 重新加载服务配置文件