1. $ yum -y install yum-utils -y
    2. $ yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # 设置源
    3. $ yum -y install docker-ce-18.06.1.ce-3.el7 # 安装docker
    4. $ systemctl enable docker && systemctl start docker # 启动docker
    5. $ docker --version
    $ cat > /etc/docker/daemon.json << EOF
    {
      "registry-mirrors": ["https://xgslkqss.mirror.aliyuncs.com"]
    }
    EOF
    
    $ systemctl restart docker