- 查看service状态
$ systemctl status docker.service
- 启动service
$ sudo systemctl start docker.service
- 停止service
sudo systemctl start docker.service
- 查看是否自动重启
$ systemctl is-enabled docker.service
- 启动自动重启
$ sudo systemctl enable docker.service
- 关闭自动重启
$ sudo systemctl disable docker.service
网友评论