title: How to check if the restart policy works of Docker
body: <p>From the Docker <a href="https://docs.docker.com/reference/run/#restart-policies-restart" rel="noreferrer">document</a>, there is a <code>restart policy</code> parameter could be set.</p>
  
  <p>How do I verify the container indeed restarts when the container exits. How to trigger the exit of container manually, and observe if the container restarts?</p>
  
  <p>My environment is Mac and boot2docker.</p>
  
  <p>Thanks</p>