Containers not auto starting after reboot

Discussion about Docker
Locked
User avatar
Illidan
Posts: 7
Joined: 02 Oct 2024, 17:58
Germany

Containers not auto starting after reboot

Post by Illidan »

Hi, I am using latest TOS 6 on my 424 pro with portainer and I have noticed that when I restart the nas the containers don't auto start even though I have restart policy = unless stopped on the docker-compose files.

Any ideas?
Thanks
User avatar
bbxtudios
Posts: 8
Joined: 23 Jan 2025, 07:12
Spain

Re: Containers not auto starting after reboot

Post by bbxtudios »

I usually set the restart policy to "always", although "unless stopped" is similar, what it does is that if you stop the service, when you restart it will not start, but if you do not stop the service beforehand and restart the NAS, it will start, it may not work for you, try with "always"
User avatar
obvious
Posts: 11
Joined: 16 Jan 2025, 19:45
Spain

Re: Containers not auto starting after reboot

Post by obvious »

Hi.

I've experienced that behavior too. The restart policy "unless-stopped" works as expected on other systems but not on TOS. I had to reconfigure all my dockers on TOS to have "always" as restart policy in order to be started at boot.

Maybe Terramaster Support could confirm if the restart policy "always" is required on TOS or is there something to fix or configure in order to make "unless-stopped" policy starts containers at boot.

Regards!
User avatar
ColaChen
TM Support
Posts: 164
Joined: 11 Aug 2023, 18:15
China

Re: Containers not auto starting after reboot

Post by ColaChen »

obvious wrote: 08 Feb 2025, 14:29
Thank you, we have taken note of this issue and will optimize it in a future version.
Locked

Return to “Docker”