Cronjob to restart a docker container


Guest zin105

Recommended Posts

I'm having issues with one of my docker containers, where a restart of it fixes the problem, so I would like to schedule a daily restart of the docker in my crontab. How would the command for it look? This is the command that's being run when I force update it.
 
/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker restart --name="jackett" --net="bridge" -e TZ="Europe/Berlin" -e HOST_OS="unRAID" -e "PUID"="99" -e "PGID"="100" -p 9117:9117/tcp -v "/mnt/user/downloads/":"/downloads":rw -v "/mnt/cache/apps/jackett":"/config":rw linuxserver/jackett
741f92d47790a806e86a64900398b97a7298a5b333a717490f07203f50d8835d

docker restart jackett

Sent from my SM-T560NU using Tapatalk

  • Upvote 1
Link to comment
  • 1 year later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.