服务器重启后docker自启动
查看是否设置开机启动
systemctl list-unit-files | grep docker
设置开机启动
systemctl enable docker.service
设置容器自启
docker update --restart=always 容器名称
参考
https://cloud.tencent.com/developer/article/2243704?areaSource=102001.16&traceId=pejwYSofBAzX00VQGxcZ7