Make container/stack auto start at boot

Hi, I have deployed a couple of containers stacks on my Portainer environment (composed by 2 VMs in swarm mode).
I noticed that if I reboot the VMs (via ‘reboot’ command), stacks do not start automatically at boot: is there a setting to have them auto start at system boot?

I believe this is what your looking for goto to containers in your navigation menu → under container details scroll down until you see the following:

click on the down arrow - if you set to always it restarts every time at every boot.

Let me know if this helps you please.

Hi, yes setting that value to “Any” solved my issue, thanks!