2.进入download
3输入cento
或者直接访问地址Install Docker Engine on CentOS | Docker Docs
4一步一步根据官网命令走
2安装
3
4
方式一:
service docker start(开启)
service docker status(状态)
service docker enable(开机启动)
service docker stop(关闭)
service docker restat(重启)
方法二:
systemctl start docker(开启)
systemctl status docker(状态)
systemctl enable docker(开机启动)
systemctl stop docker(关闭)
systemctl restat docker(重启)