1、使用ststemctl命令
systemctl enable docker
2、将Docker的docker.service服务移动到系统服务中
1. cp /usr/lib/systemd/system/docker.service /etc/systemd/system/
2. systemctl daemon-reload
3. systemctl restart docker
3.查看是否启动状态
systemctl status docker
原文链接: