要启动或停止Docker守护程序,您需要使用systemctl命令(适用于大多数Linux发行版)或者通过运行service docker start和service docker stop命令(针对较旧的Linux发行版)。
对于使用systemd的系统:
sudo systemctl start docker
sudo systemctl stop docker
sudo systemctl status docker
sudo systemctl enable docker
对于较旧的Linux发行版,您可能需要使用service命令:
sudo service docker start
sudo service docker stop
sudo service docker status
sudo chkconfig docker on
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:Docker Daemon怎样启动