April 18, 20188 yr Having a bit of an issue with one of my docker apps (deluge) where the process seems to hang occasionally. Is there an easy way I can schedule the docker app to restart regularly (say, once a day)?
April 18, 20188 yr 50 minutes ago, dgallaher said: Having a bit of an issue with one of my docker apps (deluge) where the process seems to hang occasionally. Is there an easy way I can schedule the docker app to restart regularly (say, once a day)? User scripts plugin Script would be similar to docker restart deluge
April 19, 20188 yr Author Oh, brilliant. Thanks, I knew as soon as I posted that it was going to be something incredibly simple.
January 22, 20242 yr Sorry to revive an old thread, but I just had to do this and since my docker isn't auto-start, I needed to check if it was running first before restarting it.... Here is the script I used: #!/bin/bash if [ "$(docker inspect -f '{{.State.Running}}' container_name 2>/dev/null)" = "true" ]; then docker restart container_name; fi Replace container_name with the docker name, in this case deluge...
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.