title: What to do or how to handle if health_status of a docker container changes
body: <p>I am running a docker container with health-cmd and I know it will turn to unhealthy when it stops working.</p>
  
  <pre><code>$ docker run 
   --name=some-container \
   --health-cmd='curl -sS http://127.0.0.1:5000 || exit 1' \
   --health-timeout=10s \
   --health-retries=3 \
   --health-interval=5s \
   --restart on-failure \
   container-image 
  </code></pre>
  
  <p>I want to restart the container when it changes its health-status. How can do that? How to trigger the restart?</p>
  
  <p>My Docker version 19.03.1, build 74b1e89</p>