dgallaher Posted April 18, 2018 Share Posted April 18, 2018 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)? Quote Link to comment
Squid Posted April 18, 2018 Share Posted April 18, 2018 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 Quote Link to comment
dgallaher Posted April 19, 2018 Author Share Posted April 19, 2018 Oh, brilliant. Thanks, I knew as soon as I posted that it was going to be something incredibly simple. Quote Link to comment
EArroyo Posted January 22 Share Posted January 22 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... Quote Link to comment
Recommended Posts
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.