重启[reboot]Linux系统后,docker服务及容器没有自动启动:
1.设置Docker服务自启动
systemctl enable docker.service
2.设置Docker的容器自启动
// 容器已经启动,设置自启 docker update --restart=always CONTAINER_ID/CONTAINER_NAME
// 运行容器并设置自启 docker run --restart=always