Of course I meant only in case of an update; the container restarts, from my perspective as a node operator, at a random time.
I absolutely support the idea to not require a container restart on rolling updates.
Further I support the idea, to not require any rolling restart of resource intensive tasks, without providing a method to apply an individual schedule in any form.
Thank you for testing and clarifying this. I can confirm, that the updater downloads the recent version on startup.
Either this mechanism had failed on April 7th or maybe there were multiple updates?
Because when I found the container exited due to an update and my --restart no
setting, I recreated the container and X hours later, the updater requested another restart.
i realize this is unsupported, but a warning for those using iSCSI.
–restart unless-stopped is dangerous if you have lost storage. The node should shut down and stay off if storage is unavailable. with the setting --restart no. This results in an offline node after auto updating. I use a cronjob to detect node offline state, if offline - check storage, if storage online, start node.
–mount (bind source) should stop the container from starting, but i’d rather have an additional safety check and not bounce the node too frequently.
If the storage is lost, the node should not start, unless you did also the setup step in the second time when the storage is missing.
So you can use --restart unless-stopped without problems, but your node could crash too often (it also checks the readability and writability and will crash otherwise).
Container should be restarted, if it dies. Does container remain as stopped?
docker ps -a
Do you have watchtower running? Does it has only one instance?
Please try also remove the image and pull it again, then run the node.
I would also recommend checking your system logs, it may have been killed due to OOM.