Page 1 of 1

Containers not auto starting after reboot

Posted: 06 Feb 2025, 22:07
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

Re: Containers not auto starting after reboot

Posted: 06 Feb 2025, 22:34
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"

Re: Containers not auto starting after reboot

Posted: 08 Feb 2025, 14:29
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!

Re: Containers not auto starting after reboot

Posted: 08 Feb 2025, 15:58
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.