1 检查Ubuntu的内核
docker需要ubuntu的内核是高于3.10
命令:uname -r
2.安装docker
命令: sudo apt-get install docker.io
3.查看版本
docker –version
4. 启动
启动Docker命令: sudo systemctl start docker
查看状态: sudo systemctl status docker
5.关闭
sudo systemctl stop docker
6.卸载docker
sudo apt-get remove docker docker-engine docker-ce docker.io