June 2, 20242 yr I have a docker container running 24/7, but it needs to restart after a few days, so is there a plugin or setting can automatic doing this?
June 3, 20242 yr you can set this with docker restart policy. you can add the --restart unless-stopped (or --restart always) into the extra parameters section of the template (in advanced view).
January 22, 20251 yr Community Expert 6 hours ago, getsyoumad said: Anyone know how to setup a script that auto restarts a docker every 3-4 hours Replace "name_of_docker" with the exact name of the docker container in question, it is case sensitive too. #!/bin/bash docker restart name_of_docker Set a custom schedule to restart every 4 hours 0 */4 * * * Edited January 22, 20251 yr by MowMdown
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.