查看运行状态
systemctl status docker
如下图,说明正在运行:
如下图,没在运行:
查看运行状态
ps -ef|grep docker
启动docker Server
service docker start
或
systemctl start docker
重启docker Server
systemctl restart docker
或
service docker restart
关闭docker Server
systemctl stop docker
或
service docker stop
开机自启
systemctl enable docker

