title: Restart Docker Container (Automatically) when Image changes in Portainer(?)
body: <p>I have a java WAR file that is of an Image (Docker) and is being started inside a Tomcat (Docker) container. Since the coding changes, the WAR will change also. I would like to do the following:</p>
  
  <ol>
  <li>Change the java code Update to Git </li>
  <li>Have a WAR file created (from code just pushed to Git) </li>
  <li>create a NEW IMAGE (Docker) that uses the NEW WAR file</li>
  <li>stop all old containers (running old image)</li>
  <li>re-start the containers (which will be using the new image)</li>
  </ol>
  
  <p>I am also using Portainer. Is there some series of commands that I can execute / run so that Item #4 and Item #5 can be ran automatically (without requiring human intervention)? Is there some kind of way that this can be done at all?</p>
  
  <p>TIA</p>