Closed Fr33loader closed 6 years ago
I don't see anything wrong with that setting in your compose file.
Unless it is different on ARM - the setting used in Mediabox:
restart: unless-stopped
does restart containers after a server reboot.
It only doesn't restart any that were specifically stopped via the docker command-line. I reboot my server all the time and all the containers I expect to spin back up start right up again after the boot.
Not sure if it is the container you are using or if it due to ARM but both:
restart: unless-stopped
and
restart: always
Should re-launch running containers after a reboot.
Do "any" container restart for you at all after a reboot?
This hasn't worked since the beginning, but weirdly enough I did a full "sudo apt update && sudo apt full-upgrade" and the problem disappeared: it auto reboots on start now.
Apologies for wasting your time - this can be closed now.
No problem at all ... Glad it's working correctly now. Thanks
Hi guys,
Just a small question that has left me puzzled.
Problem
The default docker image setup does not really suit my needs, since I would prefer that if I did a reboot of my server, my docker containers would automatically reboot.
To that end, I added a "restart: always" in my docker-compose file.
Example:
Unfortunately, no luck. On force reboot, it exits the docker container and does not reboot. Anything I'm missing?