title: Docker unable to start an interactive shell if the image has an entry script
body: <p>My custom-made image ends with </p>
  
  <pre><code>ENTRYPOINT [ "/bin/bash", "-c", "/home/tool/entry_script.sh" ]
  </code></pre>
  
  <p>This is absolutely needed because at runtime, the first thing the user must do is to update an already cloned github project, and users will often forget to do it.</p>
  
  <p>But then, when i try to launch using </p>
  
  <pre><code>docker run -it --rm my_image /bin/bash
  </code></pre>
  
  <p>i can see that the <code>ENTRYPOINT</code> script is being executed, but then the container exit.</p>
  
  <p>I expect to have <code>/bin/bash</code> being executed and the shell to remain in interactive mode, due to <code>-it</code> flags.</p>
  
  <p><strong>What am I doing wrong?</strong></p>
  
  <p>UPDATE: I add my entry script</p>
  
  <pre><code>#!/bin/bash
  
  echo "UPDATING GIT REPO";
  
  cd /home/tool/cloned_github_tools_root
  git pull
  git submodule init
  git submodule update
  
  echo "Entrypoint ended";
  </code></pre>
  
  <blockquote>
    <p>Actually I've not kind of errors at runtime</p>
  </blockquote>