dboonthego Posted July 25, 2019 Share Posted July 25, 2019 Is there a right way to restart a docker container every 24 hours and have it persist after a reboot? This is my solution. It works, but just wondering how others might do it. Create shell script to restart the docker container and save to flash stick. Edit crontab; adding a line to execute the above shell script at desired interval. Export crontab; saving output to a file on the flash stick. Edit GO script to import crontab at boot using the exported file. Link to comment
JonathanM Posted July 25, 2019 Share Posted July 25, 2019 1 hour ago, dboonthego said: how others might do it. Much easier to just put the script into the user scripts plugin. No mucking about with go file or crontab. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.