使用官方提供得脚本安装
$ curl -fsSL get.docker.com -o get-docker.sh $ sudo sh get-docker.sh --mirror Aliyun
检查是否安装docker成功
docker version
安装成功!