Service down every night

I have an application , the docker version is 28.0.1

it is a new testing server. Every morning, I found the services down.
I have to reboot the server to resume the services.

may I know how to check what the problem is

Hi

How did you start your container ?

With compose, you need to add the restart key, see Restart Policies Docker Compose - DEV Community

With docker run, see the restart flag.

What do you mean by “services”? The docker service in systemd or the containers?

In both cases restarting the container or the docker service in systemd would be enough, but I’m not saying it as a solution, just to avoid rebooting an entire server.

I have set to " no " but the problem still here. May I know how can I check what the problem is? I have to reboot the server to resume the application service.

Hi

Is this an answer to my post ?

Did you have tried to set the restart option to for instance unless-stopped ? Like this f.i. “–restart unless-stopped” (command line)