title: Docker is restarting again and agin
body: <p>I'm facing a problem with my docker.
  I have my own image of SonarQube 3.6.2 which includes a couple a custom rules.
  I tried to put it in a container, but if I run SonarQube while I'm trying to start my container, then my container keeps on restarting again and again.</p>
  
  <p>I just tried every single idea that I had: <code>ENTRYPOINT</code> (both forms: <code>ENTRYPOINT["/sonarQube362/bin/linux-x86-64/sonar.sh", "start"]</code> and <code>ENTRYPOINT /sonarQube362/bin/linux-x86-64/sonar.sh start</code>), <code>CMD</code> (both forms), using a third party run.sh with these command lines inside: </p>
  
  <pre><code>#!/bin/bash
  set -e
  
  #nohup  /sonarQube362/bin/linux-x86-64/sonar.sh start
  exec /sonarQube362/bin/linux-x86-64/sonar.sh start
  </code></pre>
  
  <p>I always have the "Restarting" status on my container and the logs simply complains that <code>Sonar is restarted</code>, again, and again, and again...</p>
  
  <p>If my Dockerfile ends with <code>CMD top</code> for example, then I can <code>docker exec -ti container bash</code> into it and run any of the commands above successfully.</p>
  
  <p>Do you guys have any idea of why, when set as a <code>CMD</code> or an <code>ENTRYPOINT</code> SonarQube/Docker loops restarting?</p>
  
  <p>Cheers,</p>