更新yum 源(可选)
yum update
安装docker
yum install docker -y
设置开机启动
systemctl enable docker
一些常用命令
启动 systemctl start docker
守护进程重启 sudo systemctl daemon-reload
重启docker服务 systemctl restart docker
重启docker服务 sudo service docker restart
关闭docker service docker stop
关闭docker systemctl stop docker