1.检查Ubuntu内核
docker内核需高于3.0
uname -r
2.安装docker
sudo apt-get install docker.io
3.查看docker 版本
docker --version
4.启动docker
sudo systemctl start docker
5.查看docker状态
sudo systemctl status docker
6.关闭docker
sudo systemctl stop docker
docker内核需高于3.0
uname -r
sudo apt-get install docker.io
docker --version
sudo systemctl start docker
sudo systemctl status docker
sudo systemctl stop docker