在终端输入以下命令
1. su
2. apt-get update
3. apt-get install curl
4. curl -s https://get.docker.com|sh
即可完成安装