July 8, 20187 yr Is there away to have a docker restart automatically every few days? I would like to have my Plex docker restart once a week, just seems to run better when I do that.
July 8, 20187 yr User scripts plugin. Script would be something likedocker restart PlexSent via Tapatalk because I'm either at work or enjoying the summer
July 8, 20187 yr Author 5 hours ago, Squid said: User scripts plugin. Script would be something like docker restart Plex Sent via Tapatalk because I'm either at work or enjoying the summer So all I need to do is Click add a New Script and name it "docker restart Plex"
July 8, 20187 yr Name it something like Restart Plex. Then "Edit Script" And the script will be #!/bin/bash docker restart Plex or whatever the container's name actually is
July 9, 20187 yr Author thank you I will try it out. Container name is just Plex I think. Running Linuxserver.IO Plex and if I click on edit next to name it says Plex. Thanks Edited July 9, 20187 yr by squirrellydw
July 9, 20187 yr docker ps The column is Status but indicates how long it's been running. Edited July 9, 20187 yr by BRiT
February 10, 20233 yr Hi! I use Jdownloader + nordlynx. I would like nordlynx to restart every 8 minutes to bypass download limits from a hoster. Is it possible to make a restart interval in user scripts?
February 10, 20233 yr Community Expert 5 minutes ago, simoncana said: Hi! I use Jdownloader + nordlynx. I would like nordlynx to restart every 8 minutes to bypass download limits from a hoster. Is it possible to make a restart interval in user scripts? You could if you use the option to use a custom schedule. You should look up the format of crontab entries to see how to do this.
September 26, 2025Sep 26 My script looks like that:#!/bin/bashcontainer_name="frigate"if [ "$(docker inspect -f '{{.State.Running}}' "$container_name" 2>/dev/null)" = "true" ]; thenprintf -v date '%(%Y-%m-%d %H:%M:%S)T' -1echo "Restarting $container_name at $date"docker restart "$container_name";fi
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.