Docker monitoring and auto restart script


Recommended Posts

This is my script to auto check if a docker is responding and restart it.

 

The verification is http based which will catch both when the docker doesn't respond as well as when there is a http error code present.  You have to run a sample curl on your own and potentially choose what http content validates the docker.

 

The script comments are fairly self explanatory and the code function is pretty clean to make the script user friendly and easy to add variables and function lines to check other dockers.

UnraidDockerCheck.sh

  • Thanks 1
Link to comment
  • 4 years 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.