1、安装docker
yum install docker
如果是Debian系统,输入以下命令
apt install docker.io
2、启动docker
systemctl start docker
3、docker设置开机自启
systemctl enable docker