docker ps -a #显示所有容器
docker update --restart=always <container ID>
举例:docker update --restart=always c276b2a14ee4
设置成功!